LayoutSaver: Save the top-levels screen number

So we can be smarter when restoring layouts with different screen
setups
This commit is contained in:
Sergio Martins
2020-02-20 18:39:06 +00:00
parent 21660d9fc5
commit 950ef943b7
4 changed files with 20 additions and 0 deletions

View File

@@ -161,6 +161,7 @@ LayoutSaver::MainWindow MainWindowBase::serialize() const
m.geometry = window()->geometry(); // window() as the MainWindow can be embedded
m.isVisible = isVisible();
m.uniqueName = uniqueName();
m.screenIndex = screenNumberForWidget(this);
m.screenSize = screenSizeForWidget(this);
m.multiSplitterLayout = dropArea()->multiSplitterLayout()->serialize();