forked from qt-creator/qt-creator
QtQuickApp wizard: Add option for QtQuick 1.1 module
Technically it's just one line in the generated file, but might avoid people be confused on why there is only QtQuick 1.0 as an option. Change-Id: I61fb4e82d8ee71fe6fddcd6845b4b48e78004e81 Reviewed-on: http://codereview.qt.nokia.com/625 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Alessandro Portale <alessandro.portale@nokia.com>
This commit is contained in:
committed by
Alessandro Portale
parent
4bf5f4bd94
commit
31904563bb
@@ -63,7 +63,8 @@ QtQuickComponentSetOptionsPage::QtQuickComponentSetOptionsPage(QWidget *parent)
|
||||
{
|
||||
m_d->ui.setupUi(this);
|
||||
m_d->ui.buttonGroup->setId(m_d->ui.qtquick10RadioButton, 0);
|
||||
m_d->ui.buttonGroup->setId(m_d->ui.symbian10RadioButton, 1);
|
||||
m_d->ui.buttonGroup->setId(m_d->ui.qtquick11RadioButton, 1);
|
||||
m_d->ui.buttonGroup->setId(m_d->ui.symbian10RadioButton, 2);
|
||||
connect(m_d->ui.buttonGroup, SIGNAL(buttonClicked(int)), this, SLOT(radioButtonChecked(int)));
|
||||
}
|
||||
|
||||
@@ -75,7 +76,8 @@ QtQuickComponentSetOptionsPage::~QtQuickComponentSetOptionsPage()
|
||||
QtQuickApp::ComponentSet QtQuickComponentSetOptionsPage::componentSet() const
|
||||
{
|
||||
switch (m_d->ui.buttonGroup->checkedId()) {
|
||||
case 1: return QtQuickApp::Symbian10Components;
|
||||
case 1: return QtQuickApp::QtQuick11Components;
|
||||
case 2: return QtQuickApp::Symbian10Components;
|
||||
case 0:
|
||||
default: return QtQuickApp::QtQuick10Components;
|
||||
}
|
||||
@@ -85,6 +87,7 @@ void QtQuickComponentSetOptionsPage::setComponentSet(QtQuickApp::ComponentSet co
|
||||
{
|
||||
switch (componentSet) {
|
||||
case QtQuickApp::Symbian10Components: m_d->ui.symbian10RadioButton->click(); break;
|
||||
case QtQuickApp::QtQuick11Components: m_d->ui.qtquick11RadioButton->click(); break;
|
||||
case QtQuickApp::QtQuick10Components:
|
||||
default: m_d->ui.qtquick10RadioButton->click(); break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user