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>
This commit is contained in:
Tomaz Canabrava 2013-09-26 11:14:40 -03:00
parent fd7a671a1d
commit d6f2988bcf
2 changed files with 9 additions and 7 deletions

View file

@ -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();