aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar jan Iversen <jani@apache.org>2018-07-17 16:22:02 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2018-07-18 10:40:08 -0700
commit6c95714b9fc6af72b6d82564ac6f7f7148b8e5ed (patch)
tree99c69c8f2c8512cf837815e2852fbc44fb57845e
parent0363e590f3160965341a069f1dd9244a8eaa5d1e (diff)
downloadsubsurface-6c95714b9fc6af72b6d82564ac6f7f7148b8e5ed.tar.gz
tests: update qPrefAnimations test cases
remove include of QtTest in header, becaue it is not needed, add include of QObject in header, so moc can generate code. add QTest in cpp file, which replaces QtTest Signed-off-by: Jan Iversen <jani@apache.org>
-rw-r--r--tests/testqPrefAnimations.cpp3
-rw-r--r--tests/testqPrefAnimations.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/tests/testqPrefAnimations.cpp b/tests/testqPrefAnimations.cpp
index db0e31218..13c194233 100644
--- a/tests/testqPrefAnimations.cpp
+++ b/tests/testqPrefAnimations.cpp
@@ -1,11 +1,12 @@
// SPDX-License-Identifier: GPL-2.0
#include "testqPrefAnimations.h"
-#include "core/settings/qPrefAnimations.h"
+#include "core/settings/qPref.h"
#include "core/pref.h"
#include "core/qthelper.h"
#include <QDate>
+#include <QTest>
void TestQPrefAnimations::initTestCase()
{
diff --git a/tests/testqPrefAnimations.h b/tests/testqPrefAnimations.h
index 162baf8fd..78342607f 100644
--- a/tests/testqPrefAnimations.h
+++ b/tests/testqPrefAnimations.h
@@ -2,7 +2,7 @@
#ifndef TESTQPREFANIMATIONS_H
#define TESTQPREFANIMATIONS_H
-#include <QtTest>
+#include <QObject>
class TestQPrefAnimations : public QObject
{