summaryrefslogtreecommitdiff
path: root/IrcChannelForm.ui.qml
diff options
context:
space:
mode:
authorJoe Robinson <joe@grabyo.com>2017-04-19 12:25:54 +0100
committerJoe Robinson <joe@grabyo.com>2017-04-19 12:25:54 +0100
commit5422ca830c2d5f2845c837cccf00a42f4e310fa6 (patch)
treeae89cc5af944de2c3225799481d4fc3846e6a042 /IrcChannelForm.ui.qml
parentd1879fae05beb4e84f7c738b981381c98e98b991 (diff)
Improve user handling, fixes crash bug on /parts
Diffstat (limited to 'IrcChannelForm.ui.qml')
-rw-r--r--IrcChannelForm.ui.qml14
1 files changed, 8 insertions, 6 deletions
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: '<b>'+mode+'</b>'+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)
}
}