forked from qt-creator/qt-creator
Use Core::Id in ModeManager interface
Makes it more uniform to use and allows placeholder widget creation to be independent of mode creations. Change-Id: I4021bc9db7f8c78f0374c0cc3b3331506959afe4 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>
This commit is contained in:
@@ -1036,9 +1036,8 @@ bool QmlJSEditor::isDesignModePreferred() const
|
||||
alwaysPreferDesignMode = true;
|
||||
|
||||
// stay in design mode if we are there
|
||||
IMode *mode = ModeManager::currentMode();
|
||||
return alwaysPreferDesignMode
|
||||
|| (mode && mode->id() == Core::Constants::MODE_DESIGN);
|
||||
Id mode = ModeManager::currentMode();
|
||||
return alwaysPreferDesignMode || mode == Core::Constants::MODE_DESIGN;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user