Commit b25373b3 authored by Friedemann Kleint's avatar Friedemann Kleint Committed by Daniel Teske

Project page: Add a tooltip for the Qt version.

Change-Id: I092220ade4cb61645e6c17012d294e93759678db
Reviewed-on: http://codereview.qt.nokia.com/42Reviewed-by: default avatarDaniel Teske <daniel.teske@nokia.com>
parent ec8adef4
......@@ -264,11 +264,14 @@ void Qt4ProjectConfigWidget::qtVersionsChanged()
QList<BaseQtVersion *> validVersions = vm->versionsForTargetId(m_buildConfiguration->target()->id());
if (!validVersions.isEmpty()) {
for (int i = 0; i < validVersions.size(); ++i) {
m_ui->qtVersionComboBox->addItem(validVersions.at(i)->displayName(),
validVersions.at(i)->uniqueId());
const BaseQtVersion *version = validVersions.at(i);
m_ui->qtVersionComboBox->addItem(version->displayName(),
version->uniqueId());
if (validVersions.at(i) == qtVersion)
if (version == qtVersion) {
m_ui->qtVersionComboBox->setCurrentIndex(i);
m_ui->qtVersionComboBox->setToolTip(version->toHtml(false));
}
}
}
if (!qtVersion || !qtVersion->isValid()) {
......@@ -466,6 +469,7 @@ void Qt4ProjectConfigWidget::qtVersionSelected(const QString &)
m_ignoreChange = true;
m_buildConfiguration->setQtVersion(newQtVersion);
m_ignoreChange = false;
m_ui->qtVersionComboBox->setToolTip(newQtVersion ? newQtVersion->toHtml(false) : QString());
updateShadowBuildUi();
updateToolChainCombo();
......
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