mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
24e4058bee
commit
91dde5b8b8
@ -57,12 +57,15 @@ bool
|
||||
ChatPage::save(QString &errmsg)
|
||||
{
|
||||
RshareSettings settings;
|
||||
settings.beginGroup("Chat");
|
||||
|
||||
settings.setValue(QString::fromUtf8("Emoteicons_PrivatChat"), emotePrivatChat());
|
||||
settings.setValue(QString::fromUtf8("Emoteicons_GroupChat"), emoteGroupChat());
|
||||
settings.setValue(QString::fromUtf8("GroupChat_History"), groupchatHistory());
|
||||
settings.setValue(QString::fromUtf8("ChatScreenFont"), fontTempChat.toString());
|
||||
|
||||
settings.endGroup();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -71,6 +74,7 @@ void
|
||||
ChatPage::load()
|
||||
{
|
||||
RshareSettings settings;
|
||||
settings.beginGroup("Chat");
|
||||
|
||||
ui.checkBox_emoteprivchat->setChecked(settings.value(QString::fromUtf8("Emoteicons_PrivatChat"), true).toBool());
|
||||
ui.checkBox_emotegroupchat->setChecked(settings.value(QString::fromUtf8("Emoteicons_GroupChat"), true).toBool());
|
||||
@ -78,6 +82,8 @@ ChatPage::load()
|
||||
|
||||
fontTempChat.fromString(settings.value(QString::fromUtf8("ChatScreenFont")).toString());
|
||||
|
||||
settings.endGroup();
|
||||
|
||||
ui.labelChatFontPreview->setText(fontTempChat.rawName());
|
||||
ui.labelChatFontPreview->setFont(fontTempChat);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user