diff options
| author | Elvis Angelaccio <[email protected]> | 2019-03-23 10:51:17 +0100 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2019-03-23 10:51:17 +0100 |
| commit | aee1b07e26cadf6fafbde3dd5415f62932356839 (patch) | |
| tree | 283da67bc5a25328301b647cbd1c4cfe2fbaaa7f /src | |
| parent | 6dbabdfee65083bd074d931643dc792cac03e675 (diff) | |
| parent | bff373d598c031cb19bac222f90527d4c4c3d567 (diff) | |
Merge branch 'Applications/19.04'
Diffstat (limited to 'src')
| -rw-r--r-- | src/tests/placesitemmodeltest.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/tests/placesitemmodeltest.cpp b/src/tests/placesitemmodeltest.cpp index 40ee47cbc..fac0931a6 100644 --- a/src/tests/placesitemmodeltest.cpp +++ b/src/tests/placesitemmodeltest.cpp @@ -29,6 +29,7 @@ #include <KAboutData> #include <KFilePlacesModel> +#include "dolphin_generalsettings.h" #include "panels/places/placesitemmodel.h" #include "panels/places/placesitem.h" #include "views/viewproperties.h" @@ -475,10 +476,18 @@ void PlacesItemModelTest::testDefaultViewProperties() QFETCH(bool, expectedPreviewShow); QFETCH(QList<QByteArray>, expectedVisibleRole); + // In order to test the default view properties, turn off the global view properties. + GeneralSettings* settings = GeneralSettings::self(); + settings->setGlobalViewProps(false); + settings->save(); + ViewProperties properties(KFilePlacesModel::convertedUrl(url)); QCOMPARE(properties.viewMode(), expectedViewMode); QCOMPARE(properties.previewsShown(), expectedPreviewShow); QCOMPARE(properties.visibleRoles(), expectedVisibleRole); + + settings->setGlobalViewProps(true); + settings->save(); } void PlacesItemModelTest::testClear() |
