From a80e3b21acdc942963d4c5a2b8d620cfb9cb75a2 Mon Sep 17 00:00:00 2001 From: Jarek Kobus Date: Mon, 29 Jun 2020 11:41:55 +0200 Subject: Use QList instead of QVector Task-number: QTBUG-84469 Change-Id: I808bff554878809d7921db2e2b54356f56a1c40f Reviewed-by: Sona Kurazyan Reviewed-by: Mitch Curtis --- tests/manual/x11vkbtest/testlanguagechange.cpp | 4 ++-- tests/manual/x11vkbtest/testreporter.cpp | 6 +++--- tests/manual/x11vkbtest/testreporter.h | 4 ++-- tests/manual/x11vkbtest/testthread.cpp | 2 +- tests/manual/x11vkbwrapper/handleatspievents.h | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/manual/x11vkbtest/testlanguagechange.cpp b/tests/manual/x11vkbtest/testlanguagechange.cpp index 082c00a2..4214c210 100644 --- a/tests/manual/x11vkbtest/testlanguagechange.cpp +++ b/tests/manual/x11vkbtest/testlanguagechange.cpp @@ -31,7 +31,7 @@ #include #include #include -#include +#include #include #include #include @@ -51,7 +51,7 @@ const quint32 KTime_Wait_After_Click = 180000; const quint32 KTime_Wait_To_Start_Process = 350000; const quint32 KTestRepeats = 10; -const QVector< QPair< QString, quint8 > > KLanguage_List = { +const QList> KLanguage_List = { QPair< QString, quint8 >("العربية", 1), QPair< QString, quint8 >("български", 1), QPair< QString, quint8 >("čeština", 1), diff --git a/tests/manual/x11vkbtest/testreporter.cpp b/tests/manual/x11vkbtest/testreporter.cpp index 11e24524..49c28005 100644 --- a/tests/manual/x11vkbtest/testreporter.cpp +++ b/tests/manual/x11vkbtest/testreporter.cpp @@ -29,7 +29,7 @@ #include #include -#include +#include #include #include "testreporter.h" #include "testbase.h" @@ -56,7 +56,7 @@ void TestReporter::startMemoryReport() } } -void TestReporter::printTestResultsToCSV(const QVector &tests) const +void TestReporter::printTestResultsToCSV(const QList &tests) const { QFile file(KReport_CSV_File); if (file.open(QIODevice::WriteOnly | QIODevice::Append)) { @@ -115,7 +115,7 @@ void TestReporter::printMemoryResultToCSV(QString minPeakMemoryReport) const } } -void TestReporter::printTestResultToConsole(const QVector &tests) const +void TestReporter::printTestResultToConsole(const QList &tests) const { QTextStream stream(stdout); diff --git a/tests/manual/x11vkbtest/testreporter.h b/tests/manual/x11vkbtest/testreporter.h index 2a6d2c5f..d53f754f 100644 --- a/tests/manual/x11vkbtest/testreporter.h +++ b/tests/manual/x11vkbtest/testreporter.h @@ -42,8 +42,8 @@ public: public: void startMemoryReport(); - void printTestResultsToCSV(const QVector &tests) const; - void printTestResultToConsole(const QVector &tests) const; + void printTestResultsToCSV(const QList &tests) const; + void printTestResultToConsole(const QList &tests) const; public slots: void printMemoryResultToCSV(const QString minPeakMemoryReport) const; diff --git a/tests/manual/x11vkbtest/testthread.cpp b/tests/manual/x11vkbtest/testthread.cpp index 8bf4556c..c68ce2a8 100644 --- a/tests/manual/x11vkbtest/testthread.cpp +++ b/tests/manual/x11vkbtest/testthread.cpp @@ -60,7 +60,7 @@ void TestThread::run() QElapsedTimer testTimer; testTimer.start(); - QVector tests; + QList tests; TestReporter reporter; WindowHelper windowHelper; diff --git a/tests/manual/x11vkbwrapper/handleatspievents.h b/tests/manual/x11vkbwrapper/handleatspievents.h index 677015ff..15837824 100644 --- a/tests/manual/x11vkbwrapper/handleatspievents.h +++ b/tests/manual/x11vkbwrapper/handleatspievents.h @@ -31,7 +31,7 @@ #define HANDLEATSPIEVENTS_H #include -#include +#include #include class HandleATSPIEvents : public QObject @@ -56,7 +56,7 @@ public slots: private: bool m_keyboardVisible; - QVector m_focuses; + QList m_focuses; }; #endif // HANDLEATSPIEVENTS_H -- cgit v1.2.3