summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandro Knauß <[email protected]>2017-10-24 23:24:28 +0200
committerSandro Knauß <[email protected]>2017-10-24 23:24:28 +0200
commit9d1d433e895d695a5ac8664ab56b09930286e005 (patch)
treede42c80964938725fbb5c8374bb8a6ff6ffe5ca8
parent7a99a0ff6f63d9d62dd53824c69d6a0226e344e9 (diff)
QColor::dark and QColor::light are deprecated.
use QColor::darker and QColor::lighter instead.
-rw-r--r--plugins/messageviewerheaderplugins/enterpriseheaderstyleplugin/enterpriseheaderstyle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/messageviewerheaderplugins/enterpriseheaderstyleplugin/enterpriseheaderstyle.cpp b/plugins/messageviewerheaderplugins/enterpriseheaderstyleplugin/enterpriseheaderstyle.cpp
index 2abd0a5..191b753 100644
--- a/plugins/messageviewerheaderplugins/enterpriseheaderstyleplugin/enterpriseheaderstyle.cpp
+++ b/plugins/messageviewerheaderplugins/enterpriseheaderstyleplugin/enterpriseheaderstyle.cpp
@@ -55,10 +55,10 @@ QString EnterpriseHeaderStyle::format(KMime::Message *message) const
QString linkColor = QStringLiteral("class =\"white\"");
const QColor activeColor = KColorScheme(QPalette::Active, KColorScheme::Selection).
background().color();
- QColor activeColorDark = activeColor.dark(130);
+ QColor activeColorDark = activeColor.darker(130);
// reverse colors for encapsulated
if (!isTopLevel()) {
- activeColorDark = activeColor.dark(50);
+ activeColorDark = activeColor.darker(50);
fontColor = QColor(Qt::black);
linkColor = QStringLiteral("class =\"black\"");
}