summaryrefslogtreecommitdiffstats
path: root/qt-ui/mainwindow.h
diff options
context:
space:
mode:
authorGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-09-26 11:14:40 -0300
committerGravatar Tomaz Canabrava <tcanabrava@kde.org>2013-09-26 11:14:40 -0300
commitd6f2988bcf1b950e60fb820fe1bd5e96c025c979 (patch)
tree3aee1857b830ae7a9ca7053ab33547f4c825a573 /qt-ui/mainwindow.h
parentfd7a671a1d60dab5da17c5c1678dff4673925396 (diff)
downloadsubsurface-d6f2988bcf1b950e60fb820fe1bd5e96c025c979.tar.gz
Code Cleanup, less magic indexes.
This patch removes the magic indexes used to control the mainwindow display of the profile and planner by an enum. a bit more verbose but hard to miss. Signed-off-by: Tomaz Canabrava <tcanabrava@kde.org>
Diffstat (limited to 'qt-ui/mainwindow.h')
-rw-r--r--qt-ui/mainwindow.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.h b/qt-ui/mainwindow.h
index 3d5b9ab4a..7fc03b614 100644
--- a/qt-ui/mainwindow.h
+++ b/qt-ui/mainwindow.h
@@ -37,6 +37,8 @@ class MainWindow : public QMainWindow
Q_OBJECT
public:
enum {COLLAPSED, EXPANDED};
+ enum StackWidgetIndexes{ PROFILE, PLANNERPROFILE};
+ enum InfoWidgetIndexes{ MAINTAB, PLANNERWIDGET};
MainWindow();
ProfileGraphicsView *graphics();