From 6b6ce0e58249a5989a8c92f00cc705d5b088654f Mon Sep 17 00:00:00 2001 From: John Maguire Date: Thu, 25 Mar 2010 11:38:28 +0000 Subject: [PATCH] Enable alternating row colours for playlist... hackity hack. Fixes issue #112 --- data/mainwindow.css | 1 + src/playlistview.cpp | 2 ++ 2 files changed, 3 insertions(+) diff --git a/data/mainwindow.css b/data/mainwindow.css index ddaaf1abc..05c84724d 100644 --- a/data/mainwindow.css +++ b/data/mainwindow.css @@ -5,6 +5,7 @@ background-position: bottom right; background-repeat: none; background-clip: content; + alternate-background-color: %palette-alternate-base; } QToolButton { diff --git a/src/playlistview.cpp b/src/playlistview.cpp index 64e1d67c7..18e1b5639 100644 --- a/src/playlistview.cpp +++ b/src/playlistview.cpp @@ -197,6 +197,8 @@ PlaylistView::PlaylistView(QWidget *parent) glow_timer_->setInterval(1500 / kGlowIntensitySteps); connect(glow_timer_, SIGNAL(timeout()), SLOT(GlowIntensityChanged())); + + setAlternatingRowColors(true); } void PlaylistView::setModel(QAbstractItemModel *model) {