diff options
Diffstat (limited to 'tests/auto/pressandhold/tst_pressandhold.cpp')
-rw-r--r-- | tests/auto/pressandhold/tst_pressandhold.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/pressandhold/tst_pressandhold.cpp b/tests/auto/pressandhold/tst_pressandhold.cpp index 1bfed129..f58bea03 100644 --- a/tests/auto/pressandhold/tst_pressandhold.cpp +++ b/tests/auto/pressandhold/tst_pressandhold.cpp @@ -36,11 +36,15 @@ #include <QtTest> #include <QtQuick> +#include <QtQuickControls2/qquickstyle.h> class tst_PressAndHold : public QObject { Q_OBJECT +public: + tst_PressAndHold(); + private slots: void initTestCase(); void cleanupTestCase(); @@ -52,6 +56,11 @@ private slots: void keepSelection(); }; +tst_PressAndHold::tst_PressAndHold() +{ + QQuickStyle::setStyle("Basic"); +} + void tst_PressAndHold::initTestCase() { QGuiApplication::styleHints()->setMousePressAndHoldInterval(100); |