From d6f2988bcf1b950e60fb820fe1bd5e96c025c979 Mon Sep 17 00:00:00 2001 From: Tomaz Canabrava Date: Thu, 26 Sep 2013 11:14:40 -0300 Subject: 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 --- qt-ui/mainwindow.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'qt-ui/mainwindow.h') 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(); -- cgit v1.2.3-70-g09d2