--- a/QTfrontend/ui/widget/chatwidget.h Wed Oct 03 12:04:29 2012 +0400
+++ b/QTfrontend/ui/widget/chatwidget.h Sat Oct 06 01:09:41 2012 +0400
@@ -21,23 +21,23 @@
#define _CHAT_WIDGET_INCLUDED
#include <QWidget>
-#include <QListWidget>
#include <QString>
#include <QGridLayout>
#include <QList>
#include <QPair>
#include <QRegExp>
#include <QHash>
+#include <QListWidgetItem>
#include "SDLInteraction.h"
#include "SmartLineEdit.h"
-class ListWidgetNickItem;
class QTextBrowser;
class QLineEdit;
-class QListWidget;
+class QListView;
class QSettings;
+class QAbstractListModel;
/// Class for custom nickname sorting
class ListWidgetNickItem : public QListWidgetItem
@@ -87,6 +87,7 @@
void displayNotice(const QString & message);
void displayWarning(const QString & message);
void setUser(const QString & nickname);
+ void setUsersModel(QAbstractListModel * model);
protected:
virtual void dragEnterEvent(QDragEnterEvent * event);
@@ -137,7 +138,7 @@
QGridLayout mainLayout;
QTextBrowser* chatText;
QStringList chatStrings;
- QListWidget* chatNicks;
+ QListView* chatNicks;
SmartLineEdit* chatEditLine;
QAction * acInfo;
QAction * acKick;