forked from qt-creator/qt-creator
Core: Ramp down MainWindow in it's ICore::pimpl function
Change-Id: I7c4934248ea4794f7d4eb95f98d19994b56fa0f1 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -205,7 +205,7 @@ void ModeManagerPrivate::appendMode(IMode *mode)
|
||||
{
|
||||
const int index = m_modeCommands.count();
|
||||
|
||||
m_mainWindow->addContextObject(mode);
|
||||
ICore::addContextObject(mode);
|
||||
|
||||
m_modeStack->insertTab(index, mode->widget(), mode->icon(), mode->displayName(),
|
||||
mode->menu() != nullptr);
|
||||
@@ -246,7 +246,7 @@ void ModeManager::removeMode(IMode *mode)
|
||||
d->m_modeCommands.remove(index);
|
||||
d->m_modeStack->removeTab(index);
|
||||
|
||||
d->m_mainWindow->removeContextObject(mode);
|
||||
ICore::removeContextObject(mode);
|
||||
}
|
||||
|
||||
void ModeManagerPrivate::enabledStateChanged(IMode *mode)
|
||||
|
||||
Reference in New Issue
Block a user