summaryrefslogtreecommitdiffstats
path: root/qt-ui/models.h
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2013-04-27 20:53:25 -0700
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-04-27 20:53:25 -0700
commit4179885da79d4d2ba0a4893331e162235765ad0f (patch)
treea01a38c68deab7ca159c11658fa053133c15254e /qt-ui/models.h
parent4bb0cd8cef2bbbbe3df6fc3daa9ccca95f065038 (diff)
parent2f4d6bbe535a195046b4746fd3a771087ee4a6c4 (diff)
downloadsubsurface-4179885da79d4d2ba0a4893331e162235765ad0f.tar.gz
Merge branch 'RenderStarsOnTable' of https://github.com/tcanabrava/subsurface into Qt
Diffstat (limited to 'qt-ui/models.h')
-rw-r--r--qt-ui/models.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/qt-ui/models.h b/qt-ui/models.h
index d64faf0bd..f4d9c8d3b 100644
--- a/qt-ui/models.h
+++ b/qt-ui/models.h
@@ -9,7 +9,7 @@
#include <QAbstractTableModel>
#include "../dive.h"
-
+#include "../divelist.h"
/* Encapsulates the tank_info global variable
* to show on Qt`s Model View System.*/
class TankInfoModel : public QAbstractTableModel {
@@ -74,11 +74,12 @@ private:
/*! An AbstractItemModel for recording dive trip information such as a list of dives.
*
*/
-class DiveItem; // Represents a single item on the model, implemented in the .cpp since it's private for this class.
+class DiveItem;
class DiveTripModel : public QAbstractItemModel
{
public:
enum Column {NR, DATE, RATING, DEPTH, DURATION, TEMPERATURE, TOTALWEIGHT, SUIT, CYLINDER, NITROX, SAC, OTU, MAXCNS, LOCATION, COLUMNS };
+ enum { DelegatesRole = Qt::UserRole };
DiveTripModel(QObject *parent = 0);