forked from qt-creator/qt-creator
Changed code generation for form classes to do a Qt version check
Change-Id: I20200303ef68bc3e73b232c44263d71d09b091a5 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com> Reviewed-by: Bill King <bill.king@nokia.com>
This commit is contained in:
@@ -46,6 +46,8 @@ CppSettingsPageWidget::CppSettingsPageWidget(QWidget *parent) :
|
||||
QWidget(parent)
|
||||
{
|
||||
m_ui.setupUi(this);
|
||||
connect(m_ui.includeQtModuleCheckBox, SIGNAL(toggled(bool)),
|
||||
m_ui.addQtVersionCheckBox, SLOT(setEnabled(bool)));
|
||||
}
|
||||
|
||||
FormClassWizardGenerationParameters CppSettingsPageWidget::parameters() const
|
||||
@@ -54,6 +56,7 @@ FormClassWizardGenerationParameters CppSettingsPageWidget::parameters() const
|
||||
rc.embedding = static_cast<UiClassEmbedding>(uiEmbedding());
|
||||
rc.retranslationSupport =m_ui.retranslateCheckBox->isChecked();
|
||||
rc.includeQtModule = m_ui.includeQtModuleCheckBox->isChecked();
|
||||
rc.addQtVersionCheck = m_ui.addQtVersionCheckBox->isChecked();
|
||||
return rc;
|
||||
}
|
||||
|
||||
@@ -61,6 +64,7 @@ void CppSettingsPageWidget::setParameters(const FormClassWizardGenerationParamet
|
||||
{
|
||||
m_ui.retranslateCheckBox->setChecked(p.retranslationSupport);
|
||||
m_ui.includeQtModuleCheckBox->setChecked(p.includeQtModule);
|
||||
m_ui.addQtVersionCheckBox->setChecked(p.addQtVersionCheck);
|
||||
setUiEmbedding(p.embedding);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user