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>
This commit is contained in:
Dirk Hohndel 2015-02-10 10:31:05 -08:00
parent 4817bb2991
commit ca154a65da
2 changed files with 4 additions and 4 deletions

View file

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

View file

@ -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;
};