Fix testlib build without features.properties
Change-Id: I3ca7f8cdb59a9a1e61d2702e92cd5e2d1420ac84 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Jason McDonald <macadder1@gmail.com>bb10
parent
eb48b3c0e1
commit
ca6a037d95
|
|
@ -169,12 +169,14 @@ static QSet<QByteArray> keywords()
|
|||
#endif
|
||||
;
|
||||
|
||||
#if QT_CONFIG(properties)
|
||||
QCoreApplication *app = QCoreApplication::instance();
|
||||
if (app) {
|
||||
const QVariant platformName = app->property("platformName");
|
||||
if (platformName.isValid())
|
||||
set << platformName.toByteArray();
|
||||
}
|
||||
#endif
|
||||
|
||||
return set;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue