From ca154a65da7dd81006df36df2d70176f0eeeeaed Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Tue, 10 Feb 2015 10:31:05 -0800 Subject: 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 --- qt-ui/mainwindow.cpp | 2 +- qt-ui/mainwindow.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'qt-ui') 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 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 applicationState; + QHash applicationState; QByteArray currentApplicationState; }; -- cgit v1.2.3-70-g09d2