summaryrefslogtreecommitdiffstats
path: root/qt-ui/models.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-29 19:55:24 +0900
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-05-29 19:55:24 +0900
commit8df20f414966db685e4709eb101e071b4783c09f (patch)
treee92d0772b2a393ae3ca73ebb47ac74e37adeb9d1 /qt-ui/models.h
parent4371a4a29859c9419a646cb7ed1182c19f54d7ab (diff)
parent5a994b08f6323680fe8362f129f097c9c2aaef2e (diff)
downloadsubsurface-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.h5
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