- ChatViewSettings viewSettings(idString());
- _showFields = viewSettings.value("ShowFields", AllFields).toInt();
- _showOwnMessages = viewSettings.value("ShowOwnMsgs", true).toBool();
- viewSettings.notify("ShowFields", this, SLOT(showFieldsSettingChanged(const QVariant &)));
- viewSettings.notify("ShowOwnMsgs", this, SLOT(showOwnMessagesSettingChanged(const QVariant &)));
-
- // ChatMonitorSettingsPage
- QString showHighlightsSettingsId = "ShowHighlights";
- QString operationModeSettingsId = "OperationMode";
- QString buffersSettingsId = "Buffers";
-
- _showHighlights = viewSettings.value(showHighlightsSettingsId, false).toBool();
- _operationMode = viewSettings.value(operationModeSettingsId, 0).toInt();
- // read configured list of buffers to monitor/ignore
- foreach(QVariant v, viewSettings.value(buffersSettingsId, QVariant()).toList())
+ // Global configuration
+ ChatViewSettings defaultSettings;
+ _showSenderBrackets = defaultSettings.showSenderBrackets();
+ defaultSettings.notify("ShowSenderBrackets", this, SLOT(showSenderBracketsSettingChanged(const QVariant &)));
+
+ // Chat Monitor specific configuration
+ ChatViewSettings viewSettings(idString());
+ _showFields = viewSettings.value("ShowFields", AllFields).toInt();
+ _showOwnMessages = viewSettings.value("ShowOwnMsgs", true).toBool();
+ viewSettings.notify("ShowFields", this, SLOT(showFieldsSettingChanged(const QVariant &)));
+ viewSettings.notify("ShowOwnMsgs", this, SLOT(showOwnMessagesSettingChanged(const QVariant &)));
+
+ // ChatMonitorSettingsPage
+ QString showHighlightsSettingsId = "ShowHighlights";
+ QString operationModeSettingsId = "OperationMode";
+ QString buffersSettingsId = "Buffers";
+ QString showBacklogSettingsId = "ShowBacklog";
+ QString includeReadSettingsId = "IncludeRead";
+
+ _showHighlights = viewSettings.value(showHighlightsSettingsId, false).toBool();
+ _operationMode = viewSettings.value(operationModeSettingsId, 0).toInt();
+ // read configured list of buffers to monitor/ignore
+ foreach(QVariant v, viewSettings.value(buffersSettingsId, QVariant()).toList())