Add LayoutSaver::restoredDockWidgets()

Implemented as a property it's better that the LayoutSaver
doesn't carry state about this. Then we would need to remove dock
widgets from the list if they are deleted. Also not a important
enough feature to be on the DockWidget public interface.
This commit is contained in:
Sergio Martins
2019-08-28 17:56:18 +01:00
parent f0078c3649
commit 46a5a580bc
4 changed files with 34 additions and 0 deletions

View File

@@ -557,6 +557,7 @@ DockWidgetBase *DockWidgetBase::createFromDataStream(QDataStream &ds)
if (dw) {
if (QWidget *w = dw->widget())
w->setVisible(true);
dw->setProperty("kddockwidget_was_restored", true);
} else {
qWarning() << Q_FUNC_INFO << "Couldn't find dock widget" << name;
}