diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2009-03-25 00:47:24 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2009-03-25 00:47:24 +0100 |
commit | 48b25611c94d380b40948a3de0bfab5678668e1d (patch) | |
tree | 30348cee350d258ba86724858dcc098b3615eb9c /src/settings.cpp | |
parent | Fixed notFound.html page (diff) | |
download | rekonq-48b25611c94d380b40948a3de0bfab5678668e1d.tar.xz |
Huge update. Fixed quite all of the settings troubles..
From now on, we (mainly) go on WebView bugfixing..
Diffstat (limited to 'src/settings.cpp')
-rw-r--r-- | src/settings.cpp | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/src/settings.cpp b/src/settings.cpp index 68a051ea..860e7050 100644 --- a/src/settings.cpp +++ b/src/settings.cpp @@ -100,8 +100,8 @@ Private::Private(SettingsDialog *parent) // ----------------------------------------------------------------------------------------------------- SettingsDialog::SettingsDialog(QWidget *parent) - : KConfigDialog(parent, "settings", ReKonfig::self() ) - , d(new Private(this) ) + : KConfigDialog(parent, "rekonfig", ReKonfig::self()) + , d(new Private(this)) { setFaceType(KPageDialog::List); showButtonSeparator(true); @@ -123,6 +123,7 @@ SettingsDialog::~SettingsDialog() delete d; } + // we need this function to UPDATE the config widget data.. void SettingsDialog::readConfig() { @@ -132,15 +133,12 @@ void SettingsDialog::readConfig() connect(d->generalUi.downloadDirUrlRequester, SIGNAL(textChanged(QString)),this, SLOT(saveSettings())); // ======= Fonts - QFont stdFont = ReKonfig::standardFont(); - d->fontsUi.standardFont->setCurrentFont(stdFont); - - QFont fxFont = ReKonfig::fixedFont(); - d->fontsUi.fixedFont->setOnlyFixed(true); - d->fontsUi.fixedFont->setCurrentFont(fxFont); - - int fnSize = ReKonfig::fontSize(); - d->fontsUi.fontSize->setValue( fnSize ); +// QFont stdFont = ReKonfig::standardFont(); +// d->fontsUi.standardFont->setCurrentFont(stdFont); +// +// QFont fxFont = ReKonfig::fixedFont(); + d->fontsUi.kcfg_fixedFont->setOnlyFixed(true); +// d->fontsUi.fixedFont->setCurrentFont(fxFont); // ======= Proxy bool proxyEnabled = ReKonfig::isProxyEnabled(); @@ -156,9 +154,8 @@ void SettingsDialog::saveSettings() ReKonfig::setDownloadDir( d->generalUi.downloadDirUrlRequester->url().prettyUrl() ); // Fonts - ReKonfig::setStandardFont( d->fontsUi.standardFont->currentFont() ); - ReKonfig::setFixedFont( d->fontsUi.fixedFont->currentFont() ); - ReKonfig::setFontSize( d->fontsUi.fontSize->value() ); +// ReKonfig::setStandardFont( d->fontsUi.standardFont->currentFont() ); +// ReKonfig::setFixedFont( d->fontsUi.fixedFont->currentFont() ); // Save ReKonfig::self()->writeConfig(); |