QTfrontend/model/playerslistmodel.h
changeset 7728 664738870325
parent 7725 4ad05a478c6c
child 7731 262228c64f15
--- a/QTfrontend/model/playerslistmodel.h	Sun Oct 07 23:33:09 2012 +0400
+++ b/QTfrontend/model/playerslistmodel.h	Sun Oct 07 23:59:55 2012 +0400
@@ -20,6 +20,10 @@
         Ignore      = Qt::UserRole + 5
     };
 
+    enum SpecialRoles {
+        SortRole = Qt::UserRole + 100
+    };
+
     explicit PlayersListModel(QObject *parent = 0);
 
     int rowCount(const QModelIndex &parent = QModelIndex()) const;
@@ -41,6 +45,7 @@
     typedef QHash<int, QVariant> DataEntry;
     QList<DataEntry> m_data;
     void updateIcon(const QModelIndex & index);
+    void updateSortData(const QModelIndex & index);
 };
 
 #endif // PLAYERSLISTMODEL_H