ProjectExplorer: Fix compile for Qt <= 5.9

Change-Id: I91371af7733d71cc3f3bcef3caab06a2fde4fd48
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
Christian Stenger
2017-11-01 06:57:47 +01:00
parent 0b76a8864c
commit f0c2c2cf17

View File

@@ -120,13 +120,13 @@ void ProjectExplorer::ProjectExplorerPlugin::testJsonWizardsUnusedKeyAtFields_da
const QPair<QString, QJsonValue> wrongData = {"wrong", false};
QTest::addColumn<QJsonObject>("wrongDataJsonObect");
QTest::addRow("Label") << QJsonObject({{wrongData, {"trText", "someText"}}});
QTest::addRow("Spacer") << QJsonObject({wrongData});
QTest::addRow("LineEdit") << QJsonObject({wrongData});
QTest::addRow("TextEdit") << QJsonObject({wrongData});
QTest::addRow("PathChooser") << QJsonObject({wrongData});
QTest::addRow("CheckBox") << QJsonObject({wrongData});
QTest::addRow("ComboBox") << QJsonObject({{wrongData, {"items", QJsonArray()}}});
QTest::newRow("Label") << QJsonObject({{wrongData, {"trText", "someText"}}});
QTest::newRow("Spacer") << QJsonObject({wrongData});
QTest::newRow("LineEdit") << QJsonObject({wrongData});
QTest::newRow("TextEdit") << QJsonObject({wrongData});
QTest::newRow("PathChooser") << QJsonObject({wrongData});
QTest::newRow("CheckBox") << QJsonObject({wrongData});
QTest::newRow("ComboBox") << QJsonObject({{wrongData, {"items", QJsonArray()}}});
}
void ProjectExplorer::ProjectExplorerPlugin::testJsonWizardsUnusedKeyAtFields()