QMakeStep: Fix qmljsdebugger warning issues

Debugging requires 4.7.1 minimum. Also update the label if the
user switches Qt versions.

Reviewed-by: dt
This commit is contained in:
Kai Koehne
2011-04-06 12:18:45 +02:00
parent 956435f9e5
commit ac2af19ee0

View File

@@ -336,7 +336,7 @@ bool QMakeStep::isQmlDebuggingLibrarySupported(QString *reason) const
return false; return false;
} }
if (qt4BuildConfiguration()->qtVersion()->qtVersion() < QtVersionNumber(4, 7 ,0)) { if (qt4BuildConfiguration()->qtVersion()->qtVersion() < QtVersionNumber(4, 7, 1)) {
if (reason) if (reason)
*reason = tr("Requires Qt 4.7.1 or newer."); *reason = tr("Requires Qt 4.7.1 or newer.");
return false; return false;
@@ -449,6 +449,7 @@ void QMakeStepConfigWidget::qtVersionChanged()
{ {
updateSummaryLabel(); updateSummaryLabel();
updateEffectiveQMakeCall(); updateEffectiveQMakeCall();
updateQmlDebuggingWarningsLabel();
} }
void QMakeStepConfigWidget::qmakeBuildConfigChanged() void QMakeStepConfigWidget::qmakeBuildConfigChanged()