- QtUiSettings qtUiSettings;
- QString showFieldSettingId = QString("ChatView/%1/showFields").arg(idString());
- QString showOwnMessagesSettingId = QString("ChatView/%1/showOwnMsgs").arg(idString());
-
- _showFields = qtUiSettings.value(showFieldSettingId, AllFields).toInt();
- _showOwnMessages = qtUiSettings.value(showOwnMessagesSettingId, true).toBool();
- qtUiSettings.notify(showFieldSettingId, this, SLOT(showFieldsSettingsChanged(const QVariant &)));
- qtUiSettings.notify(showOwnMessagesSettingId, this, SLOT(showOwnMessagesSettingChanged(const QVariant &)));
+ 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 &)));