X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fqtui%2Fqtuistyle.cpp;h=3a5b6490fa32eb76c4912940ef004f43a2d2a4bf;hb=092e6b212637ffbf68800584b7c1f32d1931b602;hp=9dc997f4a64a444c6fa5441cf8e4c9d808e20878;hpb=cbe2482dca16e13aa3a170213f299179d20526af;p=quassel.git diff --git a/src/qtui/qtuistyle.cpp b/src/qtui/qtuistyle.cpp index 9dc997f4..3a5b6490 100644 --- a/src/qtui/qtuistyle.cpp +++ b/src/qtui/qtuistyle.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2016 by the Quassel Project * + * Copyright (C) 2005-2018 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -22,6 +22,7 @@ #include "qtuistyle.h" #include +#include #include QtUiStyle::QtUiStyle(QObject *parent) : UiStyle(parent) @@ -31,6 +32,8 @@ QtUiStyle::QtUiStyle(QObject *parent) : UiStyle(parent) updateUseCustomTimestampFormat(); s.notify("TimestampFormat", this, SLOT(updateTimestampFormatString())); updateTimestampFormatString(); + s.notify("ShowSenderPrefixes", this, SLOT(updateShowSenderPrefixes())); + updateShowSenderPrefixes(); s.notify("ShowSenderBrackets", this, SLOT(updateShowSenderBrackets())); updateShowSenderBrackets(); @@ -53,6 +56,12 @@ void QtUiStyle::updateTimestampFormatString() setTimestampFormatString(s.timestampFormatString()); } +void QtUiStyle::updateShowSenderPrefixes() +{ + ChatViewSettings s; + enableSenderPrefixes(s.showSenderPrefixes()); +} + void QtUiStyle::updateShowSenderBrackets() { ChatViewSettings s;