diff options
Diffstat (limited to 'IrcChannelForm.ui.qml')
-rw-r--r-- | IrcChannelForm.ui.qml | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/IrcChannelForm.ui.qml b/IrcChannelForm.ui.qml index 053b04a..a3158d0 100644 --- a/IrcChannelForm.ui.qml +++ b/IrcChannelForm.ui.qml @@ -74,8 +74,8 @@ Item { width: 146 height: 20 Text { - text: name - property string nick + text: mode + nick + anchors.verticalCenter: parent.verticalCenter font.bold: false font.family: "Source Code Pro" @@ -88,7 +88,7 @@ Item { } function add_nick(nick, mode){ - nickListModel.append({name: '<b>'+mode+'</b>'+nick, nick: nick}) + nickListModel.append({mode: mode, nick: nick}) } function remove_nick(nick){ @@ -98,6 +98,14 @@ Item { } } } + + function update_mode(nick, mode){ + for (var i = 0; i < nickListModel.count; ++i) { + if (nickListModel.get(i).nick === nick) { + nickListModel.setProperty(i, "mode", mode) + } + } + } } Button { |