X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fqtuistyle.cpp;h=1aa2ff0a867936d2a1e27deab531a93e651fa09e;hp=6d6660b7b6fb4c244b7a9dbbdce60e0e56f4f237;hb=453ccab6ade4a21c7aa3c331af893c91468250a4;hpb=c55bd7dc80547563d8c9cc70d54aa3d24ff03166 diff --git a/src/qtui/qtuistyle.cpp b/src/qtui/qtuistyle.cpp index 6d6660b7..1aa2ff0a 100644 --- a/src/qtui/qtuistyle.cpp +++ b/src/qtui/qtuistyle.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-08 by the Quassel Project * + * Copyright (C) 2005-09 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -19,6 +19,7 @@ ***************************************************************************/ #include "qtuistyle.h" +#include "qtuisettings.h" QtUiStyle::QtUiStyle() : UiStyle("QtUiStyle") { // We need to just set our internal formats; everything else is done by the base class... @@ -102,7 +103,15 @@ QtUiStyle::QtUiStyle() : UiStyle("QtUiStyle") { url.setAnchor(true); setFormat(Url, url, Settings::Default); - _highlightColor = QColor(Qt::red); + QtUiStyleSettings s; + _highlightColor = s.highlightColor(); + if(!_highlightColor.isValid()) _highlightColor = QColor("lightcoral"); } QtUiStyle::~QtUiStyle() {} + +void QtUiStyle::setHighlightColor(const QColor &col) { + _highlightColor = col; + QtUiStyleSettings s; + s.setHighlightColor(col); +}