forked from qt-creator/qt-creator
QmlDesigner: refactor setup/integration code
- moved switchTextFormAction to shortcut manager
- renamed createDesignModeWidget
- remove unncessary DesignerSettingsKey::TEXTEDIT_IN_DESIGNMODE
(supporting it in future would be too much effort)
- using delayed registration inside QtCreator
(which does not bring more speed, but more time for the codemodel
in case of opening a qml.ui file directly)
Change-Id: I1fd05f161e4bf4659c5a2fb09705b1f67d6f8e36
Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
@@ -227,7 +227,7 @@ void DesignModeWidget::disableWidgets()
|
||||
m_isDisabled = true;
|
||||
}
|
||||
|
||||
void DesignModeWidget::showTextEdit()
|
||||
void DesignModeWidget::switchTextOrForm()
|
||||
{
|
||||
m_centralTabWidget->setCurrentIndex(m_centralTabWidget->currentIndex() == 0 ? 1 : 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user