summaryrefslogtreecommitdiffstats
path: root/subsurface.pro
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2014-01-16 15:02:32 -0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2014-01-17 06:17:09 +0700
commit1f8078828663f6bfff768cbc2fb36e6643eb3d0e (patch)
tree93437eb965759cb6b08ce2b92b6568c81d4559e7 /subsurface.pro
parent9cb5ea45d886c15b26b196bc292b7a4bbf359b20 (diff)
downloadsubsurface-1f8078828663f6bfff768cbc2fb36e6643eb3d0e.tar.gz
Added a DiveEventItem that knows how to handle itself.
Simply pass a event to the item and it will know what to do. The sad part is that this isn't true yet - there's quite a bit of boilerplate that a lot of the items are needing, but the good part is that the boolerplate is the same in all of the items, which means that I can create a tiny bit of abstraction to encapsulate it and the code will be way smaller to setup the items on the canvas. Right now the items are being correctly placed on the right places. It doesn't supports hidding / showing yet. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'subsurface.pro')
-rw-r--r--subsurface.pro6
1 files changed, 4 insertions, 2 deletions
diff --git a/subsurface.pro b/subsurface.pro
index 671b7698b..b557357e5 100644
--- a/subsurface.pro
+++ b/subsurface.pro
@@ -71,7 +71,8 @@ HEADERS = \
qt-ui/profile/animationfunctions.h \
qt-ui/profile/divecartesianaxis.h \
qt-ui/profile/diveplotdatamodel.h \
- qt-ui/profile/diveprofileitem.h
+ qt-ui/profile/diveprofileitem.h \
+ qt-ui/profile/diveeventitem.h
SOURCES = \
deco.c \
@@ -131,7 +132,8 @@ SOURCES = \
qt-ui/profile/animationfunctions.cpp \
qt-ui/profile/divecartesianaxis.cpp \
qt-ui/profile/diveplotdatamodel.cpp \
- qt-ui/profile/diveprofileitem.cpp
+ qt-ui/profile/diveprofileitem.cpp \
+ qt-ui/profile/diveeventitem.cpp
linux*: SOURCES += linux.c
mac: SOURCES += macos.c