From d50f2fab2b4f5ca3ddea78ed62952875ae74acd9 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Tue, 12 Aug 2008 19:43:55 +0000 Subject: Disable the alternating row colors when the details view is inactive. This solves the problem that when having a split view that too less contrast is given to be aware about the activation state. BUG: 168270 svn path=/trunk/KDE/kdebase/apps/; revision=846021 --- src/dolphindetailsview.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/dolphindetailsview.cpp') diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp index 41e474684..bcf385d36 100644 --- a/src/dolphindetailsview.cpp +++ b/src/dolphindetailsview.cpp @@ -121,6 +121,8 @@ DolphinDetailsView::DolphinDetailsView(QWidget* parent, DolphinController* contr this, SLOT(setZoomLevel(int))); connect(controller->dolphinView(), SIGNAL(additionalInfoChanged()), this, SLOT(updateColumnVisibility())); + connect(controller, SIGNAL(activationChanged(bool)), + this, SLOT(slotActivationChanged(bool))); if (settings->useSystemFont()) { m_font = KGlobalSettings::generalFont(); @@ -556,6 +558,11 @@ void DolphinDetailsView::slotHeaderSectionResized(int logicalIndex, int oldSize, } } +void DolphinDetailsView::slotActivationChanged(bool active) +{ + setAlternatingRowColors(active); +} + void DolphinDetailsView::disableAutoResizing() { m_autoResize = false; -- cgit v1.3