Allow configuring a callback to create tool windows on-demand

* This means we can start with an empty manager, load a layout, and just
  create the needed windows as we go according to what the layout needs.
This commit is contained in:
baldurk
2016-10-07 15:58:50 +02:00
parent f8b7f0ca87
commit e64c666883
3 changed files with 27 additions and 0 deletions
@@ -186,6 +186,7 @@ void ToolWindowManagerArea::restoreState(const QVariantMap &data) {
break;
}
}
if (t == NULL) t = m_manager->createToolWindow(objectName);
if (t) {
t->setProperty("persistData", objectData["data"]);
addToolWindow(t);