Changeset View
Changeset View
Standalone View
Standalone View
src/imagelistmodel.h
Show All 31 Lines | 28 | { | |||
---|---|---|---|---|---|
32 | Q_PROPERTY(Types::TimeGroup timeGroup READ timeGroup WRITE setTimeGroup NOTIFY timeGroupChanged) | 32 | Q_PROPERTY(Types::TimeGroup timeGroup READ timeGroup WRITE setTimeGroup NOTIFY timeGroupChanged) | ||
33 | Q_PROPERTY(Types::QueryType queryType READ queryType WRITE setQueryType) | 33 | Q_PROPERTY(Types::QueryType queryType READ queryType WRITE setQueryType) | ||
34 | Q_PROPERTY(QByteArray query READ query WRITE setQuery NOTIFY queryChanged) | 34 | Q_PROPERTY(QByteArray query READ query WRITE setQuery NOTIFY queryChanged) | ||
35 | 35 | | |||
36 | public: | 36 | public: | ||
37 | explicit ImageListModel(QObject* parent = 0); | 37 | explicit ImageListModel(QObject* parent = 0); | ||
38 | ~ImageListModel(); | 38 | ~ImageListModel(); | ||
39 | 39 | | |||
40 | virtual QHash< int, QByteArray > roleNames() const; | 40 | QHash< int, QByteArray > roleNames() const override; | ||
41 | virtual QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const; | 41 | QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override; | ||
42 | virtual int rowCount(const QModelIndex& parent = QModelIndex()) const; | 42 | int rowCount(const QModelIndex& parent = QModelIndex()) const override; | ||
43 | 43 | | |||
44 | Types::LocationGroup locationGroup() const; | 44 | Types::LocationGroup locationGroup() const; | ||
45 | void setLocationGroup(const Types::LocationGroup &group); | 45 | void setLocationGroup(const Types::LocationGroup &group); | ||
46 | 46 | | |||
47 | Types::TimeGroup timeGroup() const; | 47 | Types::TimeGroup timeGroup() const; | ||
48 | void setTimeGroup(const Types::TimeGroup &group); | 48 | void setTimeGroup(const Types::TimeGroup &group); | ||
49 | 49 | | |||
50 | Types::QueryType queryType() const; | 50 | Types::QueryType queryType() const; | ||
Show All 29 Lines |