summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--helper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/helper.cpp b/helper.cpp
index 08b8532..73699f8 100644
--- a/helper.cpp
+++ b/helper.cpp
@@ -163,7 +163,7 @@ namespace Helper {
if(alternate){
QColor b = s.value("basecolor").value<QColor>();
QColor a = s.value("altcolor").value<QColor>();
- QString style = QString("background-color: rgb(%1,%2,%3);alternate-background-color: rgb(%4,%5,%6);").arg(b.red()).arg(b.green()).arg(b.blue()).arg(a.red()).arg(a.green()).arg(a.blue());
+ QString style = QString("QTreeView { background-color: rgb(%1,%2,%3);alternate-background-color: rgb(%4,%5,%6); }").arg(b.red()).arg(b.green()).arg(b.blue()).arg(a.red()).arg(a.green()).arg(a.blue());
QVector<QTreeView*> views = Globals::instance()->views();
for(QTreeView *v : views){
v->setAlternatingRowColors(true);