mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-19 14:30:43 -04:00
Fixed choose of the font in PopupChatDialog with the font dialog.
New class RsharePeerSettings and a global variable PeerSettings for read and write settings of a peer (gpg id). Save font and color in PopupChatDialog. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@3464 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
7c126f24ba
commit
cbdb717e51
12 changed files with 279 additions and 35 deletions
|
@ -199,7 +199,7 @@ PeersDialog::PeersDialog(QWidget *parent)
|
|||
pxm.fill(_currentColor);
|
||||
ui.colorChatButton->setIcon(pxm);
|
||||
|
||||
mCurrentFont.fromString(Settings->valueFromGroup("Chat", QString::fromUtf8("ChatScreenFont")).toString());
|
||||
mCurrentFont.fromString(Settings->getChatScreenFont());
|
||||
ui.lineEdit->setFont(mCurrentFont);
|
||||
|
||||
style.setStyleFromSettings(ChatStyle::TYPE_PUBLIC);
|
||||
|
@ -1389,10 +1389,7 @@ void PeersDialog::setFont()
|
|||
mCurrentFont.setItalic(ui.textitalicChatButton->isChecked());
|
||||
ui.lineEdit->setFont(mCurrentFont);
|
||||
ui.lineEdit->setTextColor(_currentColor);
|
||||
Settings->beginGroup("Chat");
|
||||
Settings->setValue(QString::fromUtf8("ChatScreenFont"), mCurrentFont.toString());
|
||||
Settings->endGroup();
|
||||
|
||||
Settings->setChatScreenFont(mCurrentFont.toString());
|
||||
|
||||
ui.lineEdit->setFocus();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue