Commit 94389fda authored by dt's avatar dt
Browse files

Target setup page: Show a error if there are no valid qt versions

Task-Nr: QTCREATORBUG-3864
parent 936e8ebe
......@@ -137,6 +137,16 @@ void TargetSetupPage::setupWidgets()
}
}
m_layout->addSpacerItem(m_spacer);
if (m_widgets.isEmpty()) {
// Oh no one can create any targets
m_ui->scrollArea->setVisible(false);
m_ui->descriptionLabel->setVisible(false);
m_ui->noValidQtVersionsLabel->setVisible(true);
} else {
m_ui->scrollArea->setVisible(true);
m_ui->descriptionLabel->setVisible(true);
m_ui->noValidQtVersionsLabel->setVisible(false);
}
}
void TargetSetupPage::deleteWidgets()
......
......@@ -14,6 +14,13 @@
<string>Setup targets for your project</string>
</property>
<layout class="QVBoxLayout" name="verticalLayout">
<item>
<widget class="QLabel" name="noValidQtVersionsLabel">
<property name="text">
<string>&lt;b&gt;No valid qt versions found.&lt;/b&gt;&lt;br&gt; Please add a qt version in Tools/Options or via the maintenance tool of the SDK.</string>
</property>
</widget>
</item>
<item>
<layout class="QHBoxLayout" name="horizontalLayout_2">
<item>
......@@ -64,7 +71,7 @@
<x>0</x>
<y>0</y>
<width>541</width>
<height>415</height>
<height>381</height>
</rect>
</property>
<layout class="QVBoxLayout" name="verticalLayout_2"/>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment