diff options
author | 2016-12-02 11:19:51 +0900 | |
---|---|---|
committer | 2016-12-02 13:14:55 +0900 | |
commit | 6bf5bbd0ab5abab05305667a516c069c7c5556f4 (patch) | |
tree | f2cf3278c383771ff1b40dae2c72b0f08fdd69ef /HomeScreenNG/statusbarmodel.h | |
parent | 505ec164e5174ddd838c0cac1e3e828930cb3b50 (diff) |
WIP: add Qt Quick HomeScreen UI
Change-Id: I2be964f6d9e76df616169d7b2654d17ae9446687
Signed-off-by: Tasuku Suzuki <tasuku.suzuki@qt.io>
Diffstat (limited to 'HomeScreenNG/statusbarmodel.h')
-rw-r--r-- | HomeScreenNG/statusbarmodel.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/HomeScreenNG/statusbarmodel.h b/HomeScreenNG/statusbarmodel.h new file mode 100644 index 0000000..743e816 --- /dev/null +++ b/HomeScreenNG/statusbarmodel.h @@ -0,0 +1,23 @@ +#ifndef STATUSBARMODEL_H +#define STATUSBARMODEL_H + +#include <QtCore/QAbstractListModel> + +class StatusBarModel : public QAbstractListModel +{ + Q_OBJECT +public: + explicit StatusBarModel(QObject *parent = nullptr); + ~StatusBarModel(); + + int rowCount(const QModelIndex &parent = QModelIndex()) const override; + + QVariant data(const QModelIndex &index, int role = Qt::DisplayRole) const override; + QHash<int, QByteArray> roleNames() const override; + +private: + class Private; + Private *d; +}; + +#endif // STATUSBARMODEL_H |