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