added [Chat]group category when store/load Chat settings

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2908 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-05-14 17:58:13 +00:00
parent 24e4058bee
commit 91dde5b8b8

View File

@ -57,11 +57,14 @@ bool
ChatPage::save(QString &errmsg) ChatPage::save(QString &errmsg)
{ {
RshareSettings settings; RshareSettings settings;
settings.beginGroup("Chat");
settings.setValue(QString::fromUtf8("Emoteicons_PrivatChat"), emotePrivatChat()); settings.setValue(QString::fromUtf8("Emoteicons_PrivatChat"), emotePrivatChat());
settings.setValue(QString::fromUtf8("Emoteicons_GroupChat"), emoteGroupChat()); settings.setValue(QString::fromUtf8("Emoteicons_GroupChat"), emoteGroupChat());
settings.setValue(QString::fromUtf8("GroupChat_History"), groupchatHistory()); settings.setValue(QString::fromUtf8("GroupChat_History"), groupchatHistory());
settings.setValue(QString::fromUtf8("ChatScreenFont"), fontTempChat.toString()); settings.setValue(QString::fromUtf8("ChatScreenFont"), fontTempChat.toString());
settings.endGroup();
return true; return true;
} }
@ -71,12 +74,15 @@ void
ChatPage::load() ChatPage::load()
{ {
RshareSettings settings; RshareSettings settings;
settings.beginGroup("Chat");
ui.checkBox_emoteprivchat->setChecked(settings.value(QString::fromUtf8("Emoteicons_PrivatChat"), true).toBool()); ui.checkBox_emoteprivchat->setChecked(settings.value(QString::fromUtf8("Emoteicons_PrivatChat"), true).toBool());
ui.checkBox_emotegroupchat->setChecked(settings.value(QString::fromUtf8("Emoteicons_GroupChat"), true).toBool()); ui.checkBox_emotegroupchat->setChecked(settings.value(QString::fromUtf8("Emoteicons_GroupChat"), true).toBool());
ui.checkBox_groupchathistory->setChecked(settings.value(QString::fromUtf8("GroupChat_History"), true).toBool()); ui.checkBox_groupchathistory->setChecked(settings.value(QString::fromUtf8("GroupChat_History"), true).toBool());
fontTempChat.fromString(settings.value(QString::fromUtf8("ChatScreenFont")).toString()); fontTempChat.fromString(settings.value(QString::fromUtf8("ChatScreenFont")).toString());
settings.endGroup();
ui.labelChatFontPreview->setText(fontTempChat.rawName()); ui.labelChatFontPreview->setText(fontTempChat.rawName());
ui.labelChatFontPreview->setFont(fontTempChat); ui.labelChatFontPreview->setFont(fontTempChat);