QTfrontend/hats.h
changeset 1239 4901abe4c3b0
parent 1238 914bd2a9a249
child 2948 3f21a9dc93d0
--- 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 <QAbstractTableModel>
+#include <QAbstractListModel>
 #include <QStringList>
+#include <QVector>
+#include <QPair>
+#include <QIcon>
 
-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<QStringList> games;
+protected:
+	QVector<QPair<QString, QIcon> > hats;
 };
 
 #endif // _HATS_INCLUDED