mirror of
https://github.com/subsurface/subsurface.git
synced 2024-11-28 05:00:20 +00:00
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:
parent
4817bb2991
commit
ca154a65da
2 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue