diff options
| author | Elvis Angelaccio <[email protected]> | 2021-03-13 17:18:53 +0100 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2021-03-13 17:18:53 +0100 |
| commit | ffb80cb00d8fd886051f970b5155a55b1d066fcd (patch) | |
| tree | e684d3bc61dcd0951d65520f0d79f140d31a0075 /src/tests/kstandarditemmodeltest.cpp | |
| parent | c1cd4fdc913857ca0c09858bc184a91dd3842235 (diff) | |
Enable test mode in all test
Diffstat (limited to 'src/tests/kstandarditemmodeltest.cpp')
| -rw-r--r-- | src/tests/kstandarditemmodeltest.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tests/kstandarditemmodeltest.cpp b/src/tests/kstandarditemmodeltest.cpp index c04e71524..943a85214 100644 --- a/src/tests/kstandarditemmodeltest.cpp +++ b/src/tests/kstandarditemmodeltest.cpp @@ -10,6 +10,7 @@ #include "kitemviews/kstandarditem.h" #include "kitemviews/kstandarditemmodel.h" +#include <QStandardPaths> #include <QTest> class KStandardItemModelTest : public QObject @@ -17,6 +18,7 @@ class KStandardItemModelTest : public QObject Q_OBJECT private Q_SLOTS: + void initTestCase(); void init(); void cleanup(); @@ -30,6 +32,11 @@ private: KStandardItemModel* m_model; }; +void KStandardItemModelTest::initTestCase() +{ + QStandardPaths::setTestModeEnabled(true); +} + void KStandardItemModelTest::init() { m_model = new KStandardItemModel(); |
