QTfrontend/ui/widget/chatwidget.cpp
changeset 7725 4ad05a478c6c
parent 7723 ca05b576ec74
child 7737 ff63da8a3202
--- a/QTfrontend/ui/widget/chatwidget.cpp	Sat Oct 06 23:36:43 2012 +0400
+++ b/QTfrontend/ui/widget/chatwidget.cpp	Sun Oct 07 00:12:46 2012 +0400
@@ -357,9 +357,10 @@
 
     chatNicks = new QListView(this);
     chatNicks->setIconSize(QSize(24, 16));
+    chatNicks->setSelectionMode(QAbstractItemView::SingleSelection);
+    chatNicks->setEditTriggers(QAbstractItemView::NoEditTriggers);
     chatNicks->setMinimumHeight(10);
     chatNicks->setMinimumWidth(10);
-    //chatNicks->setSortingEnabled(true);
     chatNicks->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Expanding);
     chatNicks->setContextMenuPolicy(Qt::ActionsContextMenu);
     connect(chatNicks, SIGNAL(itemDoubleClicked(QListWidgetItem *)),
@@ -1106,7 +1107,7 @@
 }
 
 
-void HWChatWidget::setUsersModel(QAbstractListModel * model)
+void HWChatWidget::setUsersModel(QAbstractItemModel *model)
 {
     chatNicks->setModel(model);
     chatNicks->setModelColumn(0);