QTfrontend/chatwidget.h
changeset 4876 813ef4e8e385
parent 2847 cde320fd3122
child 4884 b2006a9f0fbc
--- a/QTfrontend/chatwidget.h	Fri Jan 28 03:30:14 2011 +0100
+++ b/QTfrontend/chatwidget.h	Sat Jan 29 01:08:39 2011 +0100
@@ -26,12 +26,21 @@
 
 #include "SDLs.h"
 
+class ListWidgetNickItem;
 class QTextBrowser;
 class QLineEdit;
 class QListWidget;
 class QSettings;
 class SDLInteraction;
 
+// this class is for custom nick sorting
+class ListWidgetNickItem : public QListWidgetItem
+{
+public:
+  ListWidgetNickItem(const QString& nick);
+  bool operator<(const QListWidgetItem & other) const;
+};
+
 class HWChatWidget : public QWidget
 {
   Q_OBJECT