diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2015-02-10 10:31:05 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2015-02-10 10:45:47 -0800 |
commit | ca154a65da7dd81006df36df2d70176f0eeeeaed (patch) | |
tree | 5bebeb27a605f29cfcf5cd63671b2fb386d66b52 /qt-ui | |
parent | 4817bb29917f58fd46561de4d8946061a0ff97ac (diff) | |
download | subsurface-ca154a65da7dd81006df36df2d70176f0eeeeaed.tar.gz |
Rename the widget to better reflect what it does
This widget defines what's in each quadrant of the main window.
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/mainwindow.cpp | 2 | ||||
-rw-r--r-- | qt-ui/mainwindow.h | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index c9915ad22..3c256844c 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -1515,7 +1515,7 @@ void MainWindow::checkForUndoAndRedo() void MainWindow::registerApplicationState(const QByteArray& state, QWidget *topLeft, QWidget *bottomLeft, QWidget *topRight, QWidget *bottomRight) { - applicationState[state] = WidgetForBorder(topLeft, bottomLeft, topRight, bottomRight); + applicationState[state] = WidgetForQuadrant(topLeft, bottomLeft, topRight, bottomRight); if (ui.topLeft->indexOf(topLeft) == -1) { ui.topLeft->addWidget(topLeft); } diff --git a/qt-ui/mainwindow.h b/qt-ui/mainwindow.h index d91a80171..b0b526380 100644 --- a/qt-ui/mainwindow.h +++ b/qt-ui/mainwindow.h @@ -210,15 +210,15 @@ private: struct dive_components what; QList<QAction *> profileToolbarActions; - struct WidgetForBorder { - WidgetForBorder(QWidget *tl = 0, QWidget *bl = 0, QWidget *tr = 0, QWidget *br = 0) : + struct WidgetForQuadrant { + WidgetForQuadrant(QWidget *tl = 0, QWidget *bl = 0, QWidget *tr = 0, QWidget *br = 0) : topLeft(tl), bottomLeft(bl), topRight(tr), bottomRight(br) {} QWidget *topLeft; QWidget *bottomLeft; QWidget *topRight; QWidget *bottomRight; }; - QHash<QByteArray, WidgetForBorder> applicationState; + QHash<QByteArray, WidgetForQuadrant> applicationState; QByteArray currentApplicationState; }; |