diff options
Diffstat (limited to 'helper.cpp')
-rw-r--r-- | helper.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |