]> cloud.milkyroute.net Git - dolphin.git/blob - src/panels/places/placesview.h
86515f56b3bdb59a791dffd72ac27f3d030a3559
[dolphin.git] / src / panels / places / placesview.h
1 /*
2 * SPDX-FileCopyrightText: 2012 Frank Reininghaus <frank78ac@googlemail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7 #ifndef PLACESVIEW_H
8 #define PLACESVIEW_H
9
10 #include "kitemviews/kstandarditemlistview.h"
11
12 /**
13 * @brief View class for the Places Panel.
14 *
15 * Reads the icon size from GeneralSettings::placesPanelIconSize().
16 */
17 class PlacesView : public KStandardItemListView
18 {
19 Q_OBJECT
20
21 public:
22 explicit PlacesView(QGraphicsWidget* parent = nullptr);
23
24 void setIconSize(int size);
25 int iconSize() const;
26
27 protected:
28 void resizeEvent(QGraphicsSceneResizeEvent *event) override;
29 };
30
31 #endif