forked from qt-creator/qt-creator
*QtVersion::warningReason(): de-duplicate code
Change-Id: I08e370cd83de5ea4f4cdfc079cc908d52d81b192 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
This commit is contained in:
@@ -72,9 +72,7 @@ QString SimulatorQtVersion::type() const
|
||||
|
||||
QStringList SimulatorQtVersion::warningReason() const
|
||||
{
|
||||
QStringList ret;
|
||||
if (qtAbis().count() == 1 && qtAbis().first().isNull())
|
||||
ret << QCoreApplication::translate("QtVersion", "ABI detection failed: Make sure to use a matching tool chain when building.");
|
||||
QStringList ret = BaseQtVersion::warningReason();
|
||||
if (qtVersion() >= QtSupport::QtVersionNumber(4, 7, 0) && qmlviewerCommand().isEmpty())
|
||||
ret << QCoreApplication::translate("QtVersion", "No qmlviewer installed.");
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user