X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fqtuistyle.cpp;h=2920f70969d42723cf0b70666f56f30ff2a6f791;hp=0fd43c1e23ea6343120a94e6b7c8eb1457aa3fb6;hb=2c8434f74c68194d56f2084f637419123e61d18b;hpb=61f33c7895e324f6e95034d86897ad2e963653f1 diff --git a/src/qtui/qtuistyle.cpp b/src/qtui/qtuistyle.cpp index 0fd43c1e..2920f709 100644 --- a/src/qtui/qtuistyle.cpp +++ b/src/qtui/qtuistyle.cpp @@ -28,14 +28,10 @@ QtUiStyle::QtUiStyle(QObject *parent) : UiStyle(parent) { ChatViewSettings s; - s.notify("UseCustomTimestampFormat", this, SLOT(updateUseCustomTimestampFormat())); - updateUseCustomTimestampFormat(); - s.notify("TimestampFormat", this, SLOT(updateTimestampFormatString())); - updateTimestampFormatString(); - s.notify("SenderPrefixMode", this, SLOT(updateSenderPrefixDisplay())); - updateSenderPrefixDisplay(); - s.notify("ShowSenderBrackets", this, SLOT(updateShowSenderBrackets())); - updateShowSenderBrackets(); + s.initAndNotify("UseCustomTimestampFormat", this, &QtUiStyle::updateUseCustomTimestampFormat); + s.initAndNotify("TimestampFormat", this, &QtUiStyle::updateTimestampFormatString); + s.initAndNotify("SenderPrefixMode", this, &QtUiStyle::updateSenderPrefixDisplay); + s.initAndNotify("ShowSenderBrackets", this, &QtUiStyle::updateShowSenderBrackets); // If no style sheet exists, generate it on first run. initializeSettingsQss();