diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2013-05-29 19:55:24 +0900 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2013-05-29 19:55:24 +0900 |
commit | 8df20f414966db685e4709eb101e071b4783c09f (patch) | |
tree | e92d0772b2a393ae3ca73ebb47ac74e37adeb9d1 /qt-ui/models.h | |
parent | 4371a4a29859c9419a646cb7ed1182c19f54d7ab (diff) | |
parent | 5a994b08f6323680fe8362f129f097c9c2aaef2e (diff) | |
download | subsurface-8df20f414966db685e4709eb101e071b4783c09f.tar.gz |
Merge branch 'bug111' of https://github.com/tcanabrava/subsurface
Diffstat (limited to 'qt-ui/models.h')
-rw-r--r-- | qt-ui/models.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qt-ui/models.h b/qt-ui/models.h index f51566c1b..b4eb8d953 100644 --- a/qt-ui/models.h +++ b/qt-ui/models.h @@ -144,6 +144,8 @@ class DiveTripModel : public QAbstractItemModel Q_OBJECT public: + enum Layout{TREE, LIST}; + DiveTripModel(QObject *parent = 0); ~DiveTripModel(); @@ -155,11 +157,14 @@ public: /*reimp*/ QModelIndex index(int row, int column, const QModelIndex &parent = QModelIndex()) const; /*reimp*/ QModelIndex parent(const QModelIndex &child) const; + Layout layout() const; + void setLayout(Layout layout); private: void setupModelData(); TreeItemDT *rootItem; QMap<dive_trip_t*, TripItem*> trips; + Layout currentLayout; }; #endif |