]>
cloud.milkyroute.net Git - dolphin.git/blob - src/panels/places/placesitemlistwidget.h
2 * SPDX-FileCopyrightText: 2012 Peter Penz <peter.penz19@gmail.com>
4 * SPDX-License-Identifier: GPL-2.0-or-later
7 #ifndef PLACESITEMLISTWIDGET_H
8 #define PLACESITEMLISTWIDGET_H
10 #include "kitemviews/kstandarditemlistwidget.h"
13 * @brief Extends KStandardItemListWidget to interpret the hidden
14 * property of the PlacesModel and use the right text color.
16 class PlacesItemListWidget
: public KStandardItemListWidget
21 PlacesItemListWidget(KItemListWidgetInformant
* informant
, QGraphicsItem
* parent
);
22 ~PlacesItemListWidget() override
;
24 void paint(QPainter
* painter
, const QStyleOptionGraphicsItem
* option
, QWidget
* widget
= nullptr) override
;
25 void polishEvent() override
;
28 bool isHidden() const override
;
29 QPalette::ColorRole
normalTextColorRole() const override
;
30 void updateCapacityBar();
31 void resetCapacityBar();
35 bool m_drawCapacityBar
;
36 qreal m_capacityBarRatio
;