diff options
| author | Eugene Popov <[email protected]> | 2021-05-25 14:24:48 +0300 |
|---|---|---|
| committer | Nate Graham <[email protected]> | 2021-05-29 22:16:18 +0000 |
| commit | 7a5d4033f4e7db3c9b86a1685423e4d254318e0e (patch) | |
| tree | 5dea02bd93104a7fad8999d70e0936c53d5cf1e8 /src | |
| parent | df9ae6c24ec57afd063bfa7ff25160efdb913ce9 (diff) | |
Revert "fix padding in places view"
This reverts commit 56888a567fc741713b6c905aeed3842a7fa230c7.
Diffstat (limited to 'src')
| -rw-r--r-- | src/panels/places/placesview.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/panels/places/placesview.cpp b/src/panels/places/placesview.cpp index 5214f47dc..9602fb8ac 100644 --- a/src/panels/places/placesview.cpp +++ b/src/panels/places/placesview.cpp @@ -1,6 +1,5 @@ /* * SPDX-FileCopyrightText: 2012 Frank Reininghaus <[email protected]> - * SPDX-FileCopyrightText: 2021 Harald Sitter <[email protected]> * * SPDX-License-Identifier: GPL-2.0-or-later */ @@ -12,10 +11,6 @@ PlacesView::PlacesView(QGraphicsWidget* parent) : KStandardItemListView(parent) { - KItemListStyleOption option = styleOption(); - option.padding = 4; - setStyleOption(option); - const int iconSize = PlacesPanelSettings::iconSize(); if (iconSize >= 0) { setIconSize(iconSize); @@ -31,6 +26,7 @@ void PlacesView::setIconSize(int size) KItemListStyleOption option = styleOption(); option.iconSize = size; + option.padding = 4; setStyleOption(option); } } |
