aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/cursor/tst_cursor.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/cursor/tst_cursor.cpp')
-rw-r--r--tests/auto/cursor/tst_cursor.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/auto/cursor/tst_cursor.cpp b/tests/auto/cursor/tst_cursor.cpp
index ed5db5b1..37a9e0c1 100644
--- a/tests/auto/cursor/tst_cursor.cpp
+++ b/tests/auto/cursor/tst_cursor.cpp
@@ -43,6 +43,7 @@
#include <QtQuickTemplates2/private/qquickpageindicator_p.h>
#include <QtQuickTemplates2/private/qquickscrollbar_p.h>
#include <QtQuickTemplates2/private/qquicktextarea_p.h>
+#include <QtQuickControls2/qquickstyle.h>
#if QT_CONFIG(cursor)
# include <QtGui/qscreen.h>
@@ -55,6 +56,9 @@ class tst_cursor : public QQmlDataTest
{
Q_OBJECT
+public:
+ tst_cursor();
+
private slots:
void init();
void controls_data();
@@ -64,6 +68,11 @@ private slots:
void scrollBar();
};
+tst_cursor::tst_cursor()
+{
+ QQuickStyle::setStyle("Basic");
+}
+
void tst_cursor::init()
{
#if QT_CONFIG(cursor)