summaryrefslogtreecommitdiff
path: root/src/settings.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-03-20 00:57:19 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-03-24 11:29:22 +0100
commitaab36b488647e298857b7ec24bce0f2b143e4520 (patch)
tree7f4f1ff8c3f53a2da82ad8d8ff052c8a78f976ca /src/settings.cpp
parentpedantic..TODO (diff)
downloadrekonq-aab36b488647e298857b7ec24bce0f2b143e4520.tar.xz
working on fixing font problem..
Diffstat (limited to 'src/settings.cpp')
-rw-r--r--src/settings.cpp18
1 files changed, 10 insertions, 8 deletions
diff --git a/src/settings.cpp b/src/settings.cpp
index 43e3a5b0..68a051ea 100644
--- a/src/settings.cpp
+++ b/src/settings.cpp
@@ -133,13 +133,14 @@ void SettingsDialog::readConfig()
// ======= Fonts
QFont stdFont = ReKonfig::standardFont();
- d->fontsUi.standardFontChooser->setFont(stdFont, false);
- d->fontsUi.standardFontChooser->setSampleText( stdFont.family() + " " + QString::number(stdFont.pointSize()) );
- connect(d->fontsUi.standardFontChooser, SIGNAL(fontSelected(QFont)),this, SLOT(saveSettings()));
+ d->fontsUi.standardFont->setCurrentFont(stdFont);
+
QFont fxFont = ReKonfig::fixedFont();
- d->fontsUi.fixedFontChooser->setFont(fxFont, true);
- d->fontsUi.fixedFontChooser->setSampleText( fxFont.family() + " " + QString::number(fxFont.pointSize()) );
- connect(d->fontsUi.fixedFontChooser, SIGNAL(fontSelected(QFont)),this, SLOT(saveSettings()));
+ d->fontsUi.fixedFont->setOnlyFixed(true);
+ d->fontsUi.fixedFont->setCurrentFont(fxFont);
+
+ int fnSize = ReKonfig::fontSize();
+ d->fontsUi.fontSize->setValue( fnSize );
// ======= Proxy
bool proxyEnabled = ReKonfig::isProxyEnabled();
@@ -155,8 +156,9 @@ void SettingsDialog::saveSettings()
ReKonfig::setDownloadDir( d->generalUi.downloadDirUrlRequester->url().prettyUrl() );
// Fonts
- ReKonfig::setStandardFont( d->fontsUi.standardFontChooser->font() );
- ReKonfig::setFixedFont( d->fontsUi.standardFontChooser->font() );
+ ReKonfig::setStandardFont( d->fontsUi.standardFont->currentFont() );
+ ReKonfig::setFixedFont( d->fontsUi.fixedFont->currentFont() );
+ ReKonfig::setFontSize( d->fontsUi.fontSize->value() );
// Save
ReKonfig::self()->writeConfig();