mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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:
parent
fd7a671a1d
commit
d6f2988bcf
2 changed files with 9 additions and 7 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue