From 5422ca830c2d5f2845c837cccf00a42f4e310fa6 Mon Sep 17 00:00:00 2001 From: Joe Robinson Date: Wed, 19 Apr 2017 12:25:54 +0100 Subject: Improve user handling, fixes crash bug on /parts --- IrcChannelForm.ui.qml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'IrcChannelForm.ui.qml') diff --git a/IrcChannelForm.ui.qml b/IrcChannelForm.ui.qml index d1f5e59..eba1072 100644 --- a/IrcChannelForm.ui.qml +++ b/IrcChannelForm.ui.qml @@ -18,7 +18,7 @@ Item { height: 411 x: 8 y: 8 - TextArea { + TextArea.flickable: TextArea { objectName: "chat_area" id: textArea x: 8 @@ -44,6 +44,7 @@ Item { selectByMouse: true Keys.onEnterPressed: send_to_irc() Keys.onReturnPressed: send_to_irc() + Keys.onTabPressed: textField.text = "bla" } @@ -60,10 +61,11 @@ Item { height: 20 Text { text: name + property string nick anchors.verticalCenter: parent.verticalCenter - font.bold: true + font.bold: false font.family: "Source Code Pro" - font.pointSize: 11 + font.pointSize: 9 } } @@ -71,13 +73,13 @@ Item { id: nickListModel } - function add_nick(nick){ - nickListModel.append({name: nick}) + function add_nick(nick, mode){ + nickListModel.append({name: ''+mode+''+nick, nick: nick}) } function remove_nick(nick){ for (var i = 0; i < nickListModel.count; ++i) { - if (nickListModel.get(i).name === nick) { + if (nickListModel.get(i).nick === nick) { nickListModel.remove(i) } } -- cgit v1.2.3