diff -r bd252cacabe8 -r 664738870325 QTfrontend/model/playerslistmodel.h --- 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 DataEntry; QList m_data; void updateIcon(const QModelIndex & index); + void updateSortData(const QModelIndex & index); }; #endif // PLAYERSLISTMODEL_H