qmlFrontend/qml/qmlFrontend/Chat.qml
branchqmlfrontend
changeset 11434 23912c93935a
parent 11430 f88b3948adf3
equal deleted inserted replaced
11433:bca9afcc3a72 11434:23912c93935a
   104                          anchors.fill: parent
   104                          anchors.fill: parent
   105                          onClicked: ;
   105                          onClicked: ;
   106                     }
   106                     }
   107                 }
   107                 }
   108             }
   108             }
   109 
       
   110         }
   109         }
   111     }
   110     }
   112 
   111 
   113     function addChatLine(nickname, line) {
   112     function addChatLine(nickname, line) {
   114         chatLines.addLine(nickname, line)
   113         chatLines.addLine(nickname, line)
   126         if(i >= 0) {
   125         if(i >= 0) {
   127             chatClientsModel.remove(i, 1);
   126             chatClientsModel.remove(i, 1);
   128             chatLines.addLine("***", qsTr("%1 quit (%2)").arg(clientName).arg(reason))
   127             chatLines.addLine("***", qsTr("%1 quit (%2)").arg(clientName).arg(reason))
   129         }
   128         }
   130     }
   129     }
       
   130 
       
   131     function clear() {
       
   132         chatClientsModel.clear()
       
   133         chatLinesModel.clear()
       
   134     }
   131 }
   135 }
   132 
   136 
   133 
   137