diff -r 914bd2a9a249 -r 4901abe4c3b0 QTfrontend/hats.h --- a/QTfrontend/hats.h Fri Aug 29 21:05:31 2008 +0000 +++ b/QTfrontend/hats.h Fri Aug 29 22:04:50 2008 +0000 @@ -19,10 +19,13 @@ #ifndef _HATS_INCLUDED #define _HATS_INCLUDED -#include +#include #include +#include +#include +#include -class HatsModel : public QAbstractTableModel +class HatsModel : public QAbstractListModel { Q_OBJECT @@ -31,11 +34,11 @@ QVariant headerData(int section, Qt::Orientation orientation, int role) const; int rowCount(const QModelIndex & parent) const; - int columnCount(const QModelIndex & parent) const; + //int columnCount(const QModelIndex & parent) const; QVariant data(const QModelIndex &index, int role) const; -//protected: -// QList games; +protected: + QVector > hats; }; #endif // _HATS_INCLUDED