]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Disable the alternating row colors when the details view is inactive. This solves...
authorPeter Penz <peter.penz19@gmail.com>
Tue, 12 Aug 2008 19:43:55 +0000 (19:43 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Tue, 12 Aug 2008 19:43:55 +0000 (19:43 +0000)
BUG: 168270

svn path=/trunk/KDE/kdebase/apps/; revision=846021

src/dolphindetailsview.cpp
src/dolphindetailsview.h

index 41e4746841e3a70800e1e9a083f7f80f9d6e1ca0..bcf385d36d9581be2d13a03559c56031d125d873 100644 (file)
@@ -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;
index d3bb0eb27a83f930374e2c77f8999d6db45a0d86..06ae325a2311a89da249febb89a669935952ff80 100644 (file)
@@ -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