diff options
Diffstat (limited to 'tests/auto/widgets/util')
-rw-r--r-- | tests/auto/widgets/util/CMakeLists.txt | 7 | ||||
-rw-r--r-- | tests/auto/widgets/util/qcompleter/CMakeLists.txt | 18 | ||||
-rw-r--r-- | tests/auto/widgets/util/qcompleter/tst_qcompleter.cpp | 4 | ||||
-rw-r--r-- | tests/auto/widgets/util/qscroller/CMakeLists.txt | 15 | ||||
-rw-r--r-- | tests/auto/widgets/util/qsystemtrayicon/CMakeLists.txt | 13 | ||||
-rw-r--r-- | tests/auto/widgets/util/qundogroup/CMakeLists.txt | 13 | ||||
-rw-r--r-- | tests/auto/widgets/util/qundostack/CMakeLists.txt | 13 |
7 files changed, 81 insertions, 2 deletions
diff --git a/tests/auto/widgets/util/CMakeLists.txt b/tests/auto/widgets/util/CMakeLists.txt new file mode 100644 index 0000000000..0372282e7b --- /dev/null +++ b/tests/auto/widgets/util/CMakeLists.txt @@ -0,0 +1,7 @@ +# Generated from util.pro. + +add_subdirectory(qcompleter) +add_subdirectory(qscroller) +add_subdirectory(qsystemtrayicon) +add_subdirectory(qundogroup) +add_subdirectory(qundostack) diff --git a/tests/auto/widgets/util/qcompleter/CMakeLists.txt b/tests/auto/widgets/util/qcompleter/CMakeLists.txt new file mode 100644 index 0000000000..ffc47a8319 --- /dev/null +++ b/tests/auto/widgets/util/qcompleter/CMakeLists.txt @@ -0,0 +1,18 @@ +# Generated from qcompleter.pro. + +##################################################################### +## tst_qcompleter Test: +##################################################################### + +add_qt_test(tst_qcompleter + SOURCES + tst_qcompleter.cpp + LIBRARIES + Qt::TestPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::Widgets +) + +#### Keys ignored in scope 1:.:.:qcompleter.pro:<TRUE>: +# TEMPLATE = "app" diff --git a/tests/auto/widgets/util/qcompleter/tst_qcompleter.cpp b/tests/auto/widgets/util/qcompleter/tst_qcompleter.cpp index 89c4a74739..fe3e3c7f72 100644 --- a/tests/auto/widgets/util/qcompleter/tst_qcompleter.cpp +++ b/tests/auto/widgets/util/qcompleter/tst_qcompleter.cpp @@ -1807,7 +1807,7 @@ void tst_QCompleter::QTBUG_52028_tabAutoCompletes() QApplication::setActiveWindow(&w); QVERIFY(QTest::qWaitForWindowActive(&w)); - QSignalSpy activatedSpy(&cbox, QOverload<int>::of(&QComboBox::activated)); + QSignalSpy activatedSpy(&cbox, &QComboBox::activated); // Tab key will complete but not activate cbox.lineEdit()->clear(); @@ -1851,7 +1851,7 @@ void tst_QCompleter::QTBUG_51889_activatedSentTwice() QApplication::setActiveWindow(&w); QVERIFY(QTest::qWaitForWindowActive(&w)); - QSignalSpy activatedSpy(&cbox, QOverload<int>::of(&QComboBox::activated)); + QSignalSpy activatedSpy(&cbox, &QComboBox::activated); // Navigate + enter activates only once (first item) cbox.lineEdit()->clear(); diff --git a/tests/auto/widgets/util/qscroller/CMakeLists.txt b/tests/auto/widgets/util/qscroller/CMakeLists.txt new file mode 100644 index 0000000000..2a1e0dc427 --- /dev/null +++ b/tests/auto/widgets/util/qscroller/CMakeLists.txt @@ -0,0 +1,15 @@ +# Generated from qscroller.pro. + +##################################################################### +## tst_qscroller Test: +##################################################################### + +add_qt_test(tst_qscroller + SOURCES + tst_qscroller.cpp + LIBRARIES + Qt::GuiPrivate + PUBLIC_LIBRARIES + Qt::Gui + Qt::Widgets +) diff --git a/tests/auto/widgets/util/qsystemtrayicon/CMakeLists.txt b/tests/auto/widgets/util/qsystemtrayicon/CMakeLists.txt new file mode 100644 index 0000000000..df6efa7281 --- /dev/null +++ b/tests/auto/widgets/util/qsystemtrayicon/CMakeLists.txt @@ -0,0 +1,13 @@ +# Generated from qsystemtrayicon.pro. + +##################################################################### +## tst_qsystemtrayicon Test: +##################################################################### + +add_qt_test(tst_qsystemtrayicon + SOURCES + tst_qsystemtrayicon.cpp + PUBLIC_LIBRARIES + Qt::Gui + Qt::Widgets +) diff --git a/tests/auto/widgets/util/qundogroup/CMakeLists.txt b/tests/auto/widgets/util/qundogroup/CMakeLists.txt new file mode 100644 index 0000000000..600a7d7da1 --- /dev/null +++ b/tests/auto/widgets/util/qundogroup/CMakeLists.txt @@ -0,0 +1,13 @@ +# Generated from qundogroup.pro. + +##################################################################### +## tst_qundogroup Test: +##################################################################### + +add_qt_test(tst_qundogroup + SOURCES + tst_qundogroup.cpp + PUBLIC_LIBRARIES + Qt::Gui + Qt::Widgets +) diff --git a/tests/auto/widgets/util/qundostack/CMakeLists.txt b/tests/auto/widgets/util/qundostack/CMakeLists.txt new file mode 100644 index 0000000000..5fc049991f --- /dev/null +++ b/tests/auto/widgets/util/qundostack/CMakeLists.txt @@ -0,0 +1,13 @@ +# Generated from qundostack.pro. + +##################################################################### +## tst_qundostack Test: +##################################################################### + +add_qt_test(tst_qundostack + SOURCES + tst_qundostack.cpp + PUBLIC_LIBRARIES + Qt::Gui + Qt::Widgets +) |