[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdenetwork/kopete/kopete/chatwindow [BROKEN EMAIL]
From: Engin Aydogan <engin () bzzzt ! biz>
Date: 2005-09-25 10:13:38
Message-ID: 1127643218.858417.29204.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 463775 by engin:
Format toolbar now saves the font size too.
M +4 -0 krichtexteditpart.cpp
--- branches/KDE/3.5/kdenetwork/kopete/kopete/chatwindow/krichtexteditpart.cpp #463774:463775
@@ -302,6 +302,8 @@
QFont tmpFont = KopetePrefs::prefs()->fontFace();
setFont( config->readFontEntry("Font", &tmpFont ) );
+
+ setFontSize( config->readNumEntry( "FontSize" ) );
}
void KopeteRichTextEditPart::writeConfig()
@@ -309,6 +311,7 @@
KConfig *config = KGlobal::config();
config->setGroup("RichTextEditor");
config->writeEntry("Font", mFont );
+ config->writeEntry("FontSize", mFont.pointSize() );
config->writeEntry("BgColor", mBgColor );
config->writeEntry("FgColor", mFgColor );
config->sync();
@@ -402,6 +405,7 @@
editor->setPointSize( size );
else if( m_capabilities & Kopete::Protocol::BaseFont)
editor->setFont( mFont );
+ writeConfig();
}
void KopeteRichTextEditPart::setFont()
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic