aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/autotest
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2019-05-27 14:12:11 +0200
committerEike Ziller <eike.ziller@qt.io>2019-05-27 14:21:00 +0000
commite0b0a08e50cef4c91808e30c2d3d33ee1b0cd0b8 (patch)
treef0f8231b559ea100015eb1dc3029b076dd78399a /src/plugins/autotest
parente846b8717aad09e71650c6ca95b05d320f1eb3f1 (diff)
ExtensionSystem: Move away from QList
Qt 6 API will move away from it. Use QVector for API and some std container for internal things. Change-Id: Iff14d48a47d5ac52ade875d9c8c84ad8a4f577d8 Reviewed-by: hjk <hjk@qt.io>
Diffstat (limited to 'src/plugins/autotest')
-rw-r--r--src/plugins/autotest/autotestplugin.cpp4
-rw-r--r--src/plugins/autotest/autotestplugin.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/autotest/autotestplugin.cpp b/src/plugins/autotest/autotestplugin.cpp
index 72aa8854682..d40f7529075 100644
--- a/src/plugins/autotest/autotestplugin.cpp
+++ b/src/plugins/autotest/autotestplugin.cpp
@@ -357,9 +357,9 @@ void AutotestPlugin::popupResultsPane()
s_instance->m_resultsPane->popup(Core::IOutputPane::NoModeSwitch);
}
-QList<QObject *> AutotestPlugin::createTestObjects() const
+QVector<QObject *> AutotestPlugin::createTestObjects() const
{
- QList<QObject *> tests;
+ QVector<QObject *> tests;
#ifdef WITH_TESTS
tests << new AutoTestUnitTests(TestTreeModel::instance());
#endif
diff --git a/src/plugins/autotest/autotestplugin.h b/src/plugins/autotest/autotestplugin.h
index fe628c9dad6..c846d3e0b05 100644
--- a/src/plugins/autotest/autotestplugin.h
+++ b/src/plugins/autotest/autotestplugin.h
@@ -79,7 +79,7 @@ private:
void onRunSelectedTriggered();
void onRunFileTriggered();
void onRunUnderCursorTriggered(TestRunMode mode);
- QList<QObject *> createTestObjects() const override;
+ QVector<QObject *> createTestObjects() const override;
const QSharedPointer<TestSettings> m_settings;
TestFrameworkManager *m_frameworkManager = nullptr;
TestSettingsPage *m_testSettingPage = nullptr;