Example #1
0
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();

    // If no style sheet exists, generate it on first run.
    initializeSettingsQss();
}
Example #2
0
QtUiStyle::QtUiStyle(QObject *parent) : UiStyle(parent) {
  ChatViewSettings s;
  s.notify("TimestampFormat", this, SLOT(updateTimestampFormatString()));
  updateTimestampFormatString();
}