forked from qt-creator/qt-creator
Disable the 'Add to project' part when there are no projects
Or when the list is empty because it is not supported, like when creating a new project. Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
This commit is contained in:
@@ -53,6 +53,8 @@ void ProjectWizardPage::setProjects(const QStringList &p)
|
||||
{
|
||||
m_ui->projectComboBox->clear();
|
||||
m_ui->projectComboBox->addItems(p);
|
||||
m_ui->projectComboBox->setEnabled(p.size() > 1);
|
||||
m_ui->projectLabel->setEnabled(p.size() > 1);
|
||||
}
|
||||
|
||||
void ProjectWizardPage::setProjectToolTips(const QStringList &t)
|
||||
|
||||
@@ -21,6 +21,9 @@
|
||||
</property>
|
||||
<item row="0" column="0">
|
||||
<widget class="QLabel" name="projectLabel">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>Add to &project:</string>
|
||||
</property>
|
||||
@@ -31,6 +34,9 @@
|
||||
</item>
|
||||
<item row="0" column="1">
|
||||
<widget class="QComboBox" name="projectComboBox">
|
||||
<property name="enabled">
|
||||
<bool>false</bool>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="0">
|
||||
@@ -44,8 +50,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QComboBox" name="addToVersionControlComboBox">
|
||||
</widget>
|
||||
<widget class="QComboBox" name="addToVersionControlComboBox"/>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
|
||||
Reference in New Issue
Block a user