forked from qt-creator/qt-creator
QmlProfilerTool: Don't check for pre 4.7.4 qt versions anymore
Those positevly stone old. Everyone using Qt 4 should be on at least 4.8. Change-Id: I71e0edc38bb8bb39a40919920ab4de90cf09b09e Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
This commit is contained in:
committed by
Ulf Hermann
parent
f06482ca7f
commit
5f0e1d9ff6
@@ -188,23 +188,6 @@ AnalyzerRunControl *QmlProfilerTool::createRunControl(const AnalyzerStartParamet
|
||||
|
||||
bool isTcpConnection = true;
|
||||
|
||||
if (runConfiguration) {
|
||||
// Check minimum Qt Version. We cannot really be sure what the Qt version
|
||||
// at runtime is, but guess that the active build configuraiton has been used.
|
||||
QtSupport::QtVersionNumber minimumVersion(4, 7, 4);
|
||||
QtSupport::BaseQtVersion *version = QtSupport::QtKitInformation::qtVersion(runConfiguration->target()->kit());
|
||||
if (version) {
|
||||
if (version->isValid() && version->qtVersion() < minimumVersion) {
|
||||
int result = QMessageBox::warning(QApplication::activeWindow(), tr("QML Profiler"),
|
||||
tr("The QML profiler requires Qt 4.7.4 or newer.\n"
|
||||
"The Qt version configured in your active build configuration is too old.\n"
|
||||
"Do you want to continue?"), QMessageBox::Yes, QMessageBox::No);
|
||||
if (result == QMessageBox::No)
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// FIXME: Check that there's something sensible in sp.connParams
|
||||
if (isTcpConnection)
|
||||
d->m_profilerConnections->setTcpConnection(sp.analyzerHost, sp.analyzerPort);
|
||||
|
Reference in New Issue
Block a user