+ ChatViewSettings viewSettings(idString());
+ _showFields = viewSettings.value("showFields", AllFields).toInt();
+ _showOwnMessages = viewSettings.value("showOwnMsgs", true).toBool();
+ viewSettings.notify("showFields", this, SLOT(showFieldsSettingsChanged(const QVariant &)));
+ viewSettings.notify("showOwnMsgs", this, SLOT(showOwnMessagesSettingChanged(const QVariant &)));
+
+ // ChatMonitorSettingsPage
+ QString highlightAlwaysSettingsId = "HighlightAlways";
+ QString operationModeSettingsId = "OperationMode";
+ QString buffersSettingsId = "Buffers";
+
+ _highlightAlways = viewSettings.value(highlightAlwaysSettingsId, false).toBool();
+ _operationMode = viewSettings.value(operationModeSettingsId, 0).toInt();
+ // read configured list of buffers to monitor/ignore
+ foreach(QVariant v, viewSettings.value(buffersSettingsId, QVariant()).toList())
+ _bufferIds << v.value<BufferId>();
+
+ viewSettings.notify(highlightAlwaysSettingsId, this, SLOT(highlightAlwaysSettingsChanged(const QVariant &)));
+ viewSettings.notify(operationModeSettingsId, this, SLOT(operationModeSettingsChanged(const QVariant &)));
+ viewSettings.notify(buffersSettingsId, this, SLOT(buffersSettingsChanged(const QVariant &)));