diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-02-10 10:41:15 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-02-10 10:45:47 -0800 |
commit | 32960899532b3749f38b65edabe6f2372522e53b (patch) | |
tree | 302fb94d9e74d4091019d8e8b305f5fcedc02c81 /qt-ui/mainwindow.cpp | |
parent | ca154a65da7dd81006df36df2d70176f0eeeeaed (diff) | |
download | subsurface-32960899532b3749f38b65edabe6f2372522e53b.tar.gz |
Change the order of the quadrants
At least to me it seems more natural to enumerate them row by row instead
of column by column, so now we do
1 2 instead of 1 3
3 4 2 4
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui/mainwindow.cpp')
-rw-r--r-- | qt-ui/mainwindow.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 3c256844c..7899aec3f 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -63,11 +63,11 @@ MainWindow::MainWindow() : QMainWindow(), DivePlannerWidget *plannerWidget = new DivePlannerWidget(); PlannerDetails *plannerDetails = new PlannerDetails(); - registerApplicationState("Default", mainTab, diveListView, profileWidget, globeGps ); - registerApplicationState("AddDive", mainTab, diveListView, profileWidget, globeGps ); - registerApplicationState("EditDive", mainTab, diveListView, profileWidget, globeGps ); - registerApplicationState("PlanDive", plannerWidget, plannerSettings, profileWidget, plannerDetails ); - registerApplicationState("EditPlannedDive", plannerWidget, diveListView, profileWidget, globeGps ); + registerApplicationState("Default", mainTab, profileWidget, diveListView, globeGps ); + registerApplicationState("AddDive", mainTab, profileWidget, diveListView, globeGps ); + registerApplicationState("EditDive", mainTab, profileWidget, diveListView, globeGps ); + registerApplicationState("PlanDive", plannerWidget, profileWidget, plannerSettings, plannerDetails ); + registerApplicationState("EditPlannedDive", plannerWidget, profileWidget, diveListView, globeGps ); setApplicationState("Default"); ui.multiFilter->hide(); @@ -1513,9 +1513,9 @@ void MainWindow::checkForUndoAndRedo() ui.action_Redo->setEnabled(undoBuffer->canRedo()); } -void MainWindow::registerApplicationState(const QByteArray& state, QWidget *topLeft, QWidget *bottomLeft, QWidget *topRight, QWidget *bottomRight) +void MainWindow::registerApplicationState(const QByteArray& state, QWidget *topLeft, QWidget *topRight, QWidget *bottomLeft, QWidget *bottomRight) { - applicationState[state] = WidgetForQuadrant(topLeft, bottomLeft, topRight, bottomRight); + applicationState[state] = WidgetForQuadrant(topLeft, topRight, bottomLeft, bottomRight); if (ui.topLeft->indexOf(topLeft) == -1) { ui.topLeft->addWidget(topLeft); } |