diff -r 3c193ec03e09 -r 3a1708759c4f QTfrontend/model/HatModel.h --- a/QTfrontend/model/HatModel.h Sun Jan 13 01:02:08 2013 +0400 +++ b/QTfrontend/model/HatModel.h Sun Jan 13 10:46:01 2013 +0400 @@ -24,30 +24,22 @@ #ifndef HEDGEWARS_HATMODEL_H #define HEDGEWARS_HATMODEL_H -#include +#include #include #include #include #include -class HatModel : public QAbstractListModel +class HatModel : public QStandardItemModel { Q_OBJECT public: HatModel(QObject *parent = 0); - QVariant headerData(int section, Qt::Orientation orientation, int role) const; - int rowCount(const QModelIndex & parent) const; - //int columnCount(const QModelIndex & parent) const; - public slots: /// Reloads hats using the DataManager. void loadHats(); - - QVariant data(const QModelIndex &index, int role) const; - protected: - QVector > hats; }; #endif // HEDGEWARS_HATMODEL_H