diff options
| author | Peter Penz <[email protected]> | 2008-08-12 19:43:55 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2008-08-12 19:43:55 +0000 |
| commit | d50f2fab2b4f5ca3ddea78ed62952875ae74acd9 (patch) | |
| tree | 3404f58023365e95a692df1d7f71e68166f857c3 /src | |
| parent | 00afeea5f5cf59969a316b8bf7c219d12c3300f3 (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/dolphindetailsview.cpp | 7 | ||||
| -rw-r--r-- | src/dolphindetailsview.h | 6 |
2 files changed, 13 insertions, 0 deletions
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; diff --git a/src/dolphindetailsview.h b/src/dolphindetailsview.h index d3bb0eb27..06ae325a2 100644 --- a/src/dolphindetailsview.h +++ b/src/dolphindetailsview.h @@ -122,6 +122,12 @@ private slots: * with the mouse. */ void slotHeaderSectionResized(int logicalIndex, int oldSize, int newSize); + + /** + * Changes the alternating row colors setting depending from + * the activation state \a active. + */ + void slotActivationChanged(bool active); /** * Disables the automatical resizing of the columns. Per default all columns |
