┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels
diff options
context:
space:
mode:
authorIsmael Asensio <[email protected]>2021-05-13 15:09:42 +0200
committerIsmael Asensio <[email protected]>2021-05-13 15:09:42 +0200
commit4d9ea4261a1f24e299595b897ea790eab1748fe9 (patch)
tree0037e4e75f3df0c8a55b3721e043a827a801bc42 /src/panels
parent08a4edad3ee4ab4b997e5a7567b0ea685cad078d (diff)
parent29636baff0f0cf8d769aa75b1c458b96cf83b828 (diff)
Merge branch 'release/21.04'
Diffstat (limited to 'src/panels')
-rw-r--r--src/panels/places/placesview.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/panels/places/placesview.cpp b/src/panels/places/placesview.cpp
index 9602fb8ac..5214f47dc 100644
--- a/src/panels/places/placesview.cpp
+++ b/src/panels/places/placesview.cpp
@@ -1,5 +1,6 @@
/*
* SPDX-FileCopyrightText: 2012 Frank Reininghaus <[email protected]>
+ * SPDX-FileCopyrightText: 2021 Harald Sitter <[email protected]>
*
* SPDX-License-Identifier: GPL-2.0-or-later
*/
@@ -11,6 +12,10 @@
PlacesView::PlacesView(QGraphicsWidget* parent) :
KStandardItemListView(parent)
{
+ KItemListStyleOption option = styleOption();
+ option.padding = 4;
+ setStyleOption(option);
+
const int iconSize = PlacesPanelSettings::iconSize();
if (iconSize >= 0) {
setIconSize(iconSize);
@@ -26,7 +31,6 @@ void PlacesView::setIconSize(int size)
KItemListStyleOption option = styleOption();
option.iconSize = size;
- option.padding = 4;
setStyleOption(option);
}
}