]> cloud.milkyroute.net Git - dolphin.git/blob - src/panels/places/placesitemlistwidget.cpp
Merge branch 'release/20.08'
[dolphin.git] / src / panels / places / placesitemlistwidget.cpp
1 /*
2 * SPDX-FileCopyrightText: 2012 Peter Penz <peter.penz19@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7 #include "placesitemlistwidget.h"
8
9 PlacesItemListWidget::PlacesItemListWidget(KItemListWidgetInformant* informant, QGraphicsItem* parent) :
10 KStandardItemListWidget(informant, parent)
11 {
12 }
13
14 PlacesItemListWidget::~PlacesItemListWidget()
15 {
16 }
17
18 bool PlacesItemListWidget::isHidden() const
19 {
20 return data().value("isHidden").toBool() ||
21 data().value("isGroupHidden").toBool();
22 }
23
24 QPalette::ColorRole PlacesItemListWidget::normalTextColorRole() const
25 {
26 return QPalette::WindowText;
27 }
28