Fix floating dock widget support in debug mode.

The dock widget visibility was not saved/restored correctly, and pulling
floating dock widgets back into the layout didn't remove the header
widget in case of locked mode.
Now we track visibility and floating state of dock widgets directly.
This commit is contained in:
con
2009-05-25 15:25:29 +02:00
parent 8638e83433
commit 8951302ab2
3 changed files with 56 additions and 31 deletions

View File

@@ -1037,15 +1037,16 @@ void DebuggerPlugin::readSettings()
s->endGroup();
m_manager->mainWindow()->restoreState(ba);
m_manager->setLocked(m_toggleLockedAction->isChecked());
}
void DebuggerPlugin::onModeChanged(IMode *mode)
{
if (mode != m_debugMode) {
m_manager->setFloatingDockWidgetsVisible(false);
m_manager->modeVisibilityChanged(false);
return;
}
m_manager->setFloatingDockWidgetsVisible(true);
m_manager->modeVisibilityChanged(true);
EditorManager *editorManager = EditorManager::instance();