diff options
Diffstat (limited to 'qt-ui')
-rw-r--r-- | qt-ui/mainwindow.cpp | 5 | ||||
-rw-r--r-- | qt-ui/mainwindow.h | 3 |
2 files changed, 8 insertions, 0 deletions
diff --git a/qt-ui/mainwindow.cpp b/qt-ui/mainwindow.cpp index 57af5e091..4b883c4f9 100644 --- a/qt-ui/mainwindow.cpp +++ b/qt-ui/mainwindow.cpp @@ -1485,3 +1485,8 @@ void MainWindow::checkForUndoAndRedo() ui.action_Undo->setEnabled(undoBuffer->canUndo()); ui.action_Redo->setEnabled(undoBuffer->canRedo()); } + +void registerApplicationState(const QByteArray& state, QWidget *topLeft, QWidget *bottomLeft, QWidget *topRight, QWidget *bottomRight) +{ + applicationState[state] = WidgetForBorder(topLeft, bottomLeft, topRight, bottomRight); +} diff --git a/qt-ui/mainwindow.h b/qt-ui/mainwindow.h index 90e819707..07e444683 100644 --- a/qt-ui/mainwindow.h +++ b/qt-ui/mainwindow.h @@ -190,6 +190,7 @@ private: void saveSplitterSizes(); QString lastUsedDir(); void updateLastUsedDir(const QString &s); + void registerApplicationState(const QByteArray& state, QWidget *topLeft, QWidget *bottomLeft, QWidget *topRight, QWidget *bottomRight); bool filesAsArguments; UpdateManager *updateManager; @@ -201,6 +202,8 @@ private: QList<QAction *> profileToolbarActions; struct WidgetForBorder { + WidgetForBorder(QWidget *tl, QWidget *bl, QWidget *tr, QWidget *br) : + topLeft(tl), bottomLeft(bl), topRight(tr), bottomRight(br) {} QWidget *topLeft; QWidget *bottomLeft; QWidget *topRight; |