diff options
author | Jan Darmochwal | 2010-07-12 09:26:31 +0200 |
---|---|---|
committer | Jan Darmochwal | 2010-07-12 09:26:31 +0200 |
commit | 7fd5c1176f04b6351dc41132888eddcb14720fc0 (patch) | |
tree | cdcad214ee4b459d06872198f4ad00b98873eb04 /vmchooser2/model.h | |
parent | updated svn:ignore (diff) | |
download | vmchooser-7fd5c1176f04b6351dc41132888eddcb14720fc0.tar.gz vmchooser-7fd5c1176f04b6351dc41132888eddcb14720fc0.tar.xz vmchooser-7fd5c1176f04b6351dc41132888eddcb14720fc0.zip |
Qt4 port
Diffstat (limited to 'vmchooser2/model.h')
-rw-r--r-- | vmchooser2/model.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/vmchooser2/model.h b/vmchooser2/model.h new file mode 100644 index 0000000..c1945d4 --- /dev/null +++ b/vmchooser2/model.h @@ -0,0 +1,32 @@ +#ifndef MODEL_H +#define MODEL_H + +#include <QAbstractListModel> +#include <QFileIconProvider> +#include <QVector> +#include "inc/DataEntry.h" +#include <vector> + +class Model : public QAbstractListModel +{ + Q_OBJECT + +public: + Model(std::vector<DataEntry>, QObject *parent = 0); + ~Model(); + + int rowCount(const QModelIndex &parent) const; + + QVariant data(const QModelIndex &index, int role) const; +// QVariant headerData(int section, Qt::Orientation orientation, int role) const; + +private: + + int rc; + std::vector<DataEntry> entries; + //QVector<QString> *list; + QFileIconProvider iconProvider; +}; + +#endif // MODEL_H + |