diff options
| author | Emmanuel Pescosta <[email protected]> | 2012-08-13 18:40:43 +0200 |
|---|---|---|
| committer | Emmanuel Pescosta <[email protected]> | 2012-08-13 18:40:43 +0200 |
| commit | 220d0d522dd3aca740c4c2d0c1f91f277f2405fd (patch) | |
| tree | 56fffb1d7748fe34076da52c3ff4cdba792d53ff /src/panels/places | |
| parent | db54a5800efb727776c83cd810f40010da66c712 (diff) | |
Fix wrong text color in places and in folders panel.
FIXED-IN: 4.9.1
REVIEW: 105832
BUG: 303133
Diffstat (limited to 'src/panels/places')
| -rw-r--r-- | src/panels/places/placesitemlistwidget.cpp | 5 | ||||
| -rw-r--r-- | src/panels/places/placesitemlistwidget.h | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/src/panels/places/placesitemlistwidget.cpp b/src/panels/places/placesitemlistwidget.cpp index 24c2b3f11..00f0fdab0 100644 --- a/src/panels/places/placesitemlistwidget.cpp +++ b/src/panels/places/placesitemlistwidget.cpp @@ -35,4 +35,9 @@ bool PlacesItemListWidget::isHidden() const return data().value("isHidden").toBool(); } +QPalette::ColorRole PlacesItemListWidget::normalTextColorPalette() const +{ + return QPalette::WindowText; +} + #include "placesitemlistwidget.moc" diff --git a/src/panels/places/placesitemlistwidget.h b/src/panels/places/placesitemlistwidget.h index d7a4f3ddd..93cd8f468 100644 --- a/src/panels/places/placesitemlistwidget.h +++ b/src/panels/places/placesitemlistwidget.h @@ -24,7 +24,7 @@ /** * @brief Extends KStandardItemListWidget to interpret the hidden - * property of the PlacesModel. + * property of the PlacesModel and use the right text color. */ class PlacesItemListWidget : public KStandardItemListWidget { @@ -36,6 +36,7 @@ public: protected: virtual bool isHidden() const; + virtual QPalette::ColorRole normalTextColorPalette() const; }; #endif |
