]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/tests/viewpropertiestest.cpp
Add clang-format and format code as in Frameworks
[dolphin.git] / src / tests / viewpropertiestest.cpp
index fb3023db5574eeb97624df92393b5bc087fd46da..7b30203d273098d0984a3be2d24d15b098ae39d3 100644 (file)
@@ -4,8 +4,8 @@
  * SPDX-License-Identifier: GPL-2.0-or-later
  */
 
-#include "dolphin_generalsettings.h"
 #include "views/viewproperties.h"
+#include "dolphin_generalsettings.h"
 #include "testdir.h"
 
 #include <QTest>
@@ -15,6 +15,7 @@ class ViewPropertiesTest : public QObject
     Q_OBJECT
 
 private Q_SLOTS:
+    void initTestCase();
     void init();
     void cleanup();
 
@@ -23,9 +24,14 @@ private Q_SLOTS:
 
 private:
     bool m_globalViewProps;
-    TestDirm_testDir;
+    TestDir *m_testDir;
 };
 
+void ViewPropertiesTest::initTestCase()
+{
+    QStandardPaths::setTestModeEnabled(true);
+}
+
 void ViewPropertiesTest::init()
 {
     m_globalViewProps = GeneralSettings::self()->globalViewProps();