added storing and loading Chat Font

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2903 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2010-05-14 12:42:31 +00:00
parent bed286030e
commit 47de2af50c
5 changed files with 98 additions and 19 deletions

View file

@ -168,7 +168,8 @@ PeersDialog::PeersDialog(QWidget *parent)
pxm.fill(_currentColor);
ui.colorChatButton->setIcon(pxm);
mCurrentFont = QFont("Comic Sans MS", 11);
RshareSettings settings;
mCurrentFont.fromString(settings.value(QString::fromUtf8("ChatScreenFont")).toString());
ui.lineEdit->setFont(mCurrentFont);
setChatInfo(tr("Welcome to RetroShare's group chat."),
@ -176,7 +177,6 @@ PeersDialog::PeersDialog(QWidget *parent)
QStringList him;
RshareSettings settings;
if (settings.value(QString::fromUtf8("GroupChat_History"), true).toBool())
{
historyKeeper.getMessages(him, "", "THIS", 8);