]> cloud.milkyroute.net Git - dolphin.git/blob - src/panels/places/placesitemlistwidget.h
Merge branch 'release/20.08'
[dolphin.git] / src / panels / places / placesitemlistwidget.h
1 /*
2 * SPDX-FileCopyrightText: 2012 Peter Penz <peter.penz19@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7 #ifndef PLACESITEMLISTWIDGET_H
8 #define PLACESITEMLISTWIDGET_H
9
10 #include "kitemviews/kstandarditemlistwidget.h"
11
12 /**
13 * @brief Extends KStandardItemListWidget to interpret the hidden
14 * property of the PlacesModel and use the right text color.
15 */
16 class PlacesItemListWidget : public KStandardItemListWidget
17 {
18 Q_OBJECT
19
20 public:
21 PlacesItemListWidget(KItemListWidgetInformant* informant, QGraphicsItem* parent);
22 ~PlacesItemListWidget() override;
23
24 protected:
25 bool isHidden() const override;
26 QPalette::ColorRole normalTextColorRole() const override;
27 };
28
29 #endif
30
31