┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/iconsviewsettingspage.cpp
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2008-02-17 15:50:06 +0000
committerPeter Penz <[email protected]>2008-02-17 15:50:06 +0000
commit51cbeaf512da9ebaefb0bfcaa21cca0f47d1b79d (patch)
treeedc8cfe7ed230f4b017560efff561f6626bb9e91 /src/iconsviewsettingspage.cpp
parent98497a639a8ddba1bbe52ea96f54c5d40e53eef9 (diff)
* if the system font is changed during Dolphin is open, take care to update the used font of all views too (assuming that the user selected "system font" as font)
* store the font weight instead of a bool property "isBold" Thanks to Rafael for the patch! CCMAIL: [email protected] svn path=/trunk/KDE/kdebase/apps/; revision=776188
Diffstat (limited to 'src/iconsviewsettingspage.cpp')
-rw-r--r--src/iconsviewsettingspage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/iconsviewsettingspage.cpp b/src/iconsviewsettingspage.cpp
index 970b7202d..0a386c89c 100644
--- a/src/iconsviewsettingspage.cpp
+++ b/src/iconsviewsettingspage.cpp
@@ -159,7 +159,7 @@ void IconsViewSettingsPage::applySettings()
settings->setFontFamily(font.family());
settings->setFontSize(font.pointSize());
settings->setItalicFont(font.italic());
- settings->setBoldFont(font.bold());
+ settings->setFontWeight(font.weight());
settings->setNumberOfTextlines(numberOfTextlines);
@@ -196,7 +196,7 @@ void IconsViewSettingsPage::loadSettings()
QFont font(settings->fontFamily(),
settings->fontSize());
font.setItalic(settings->italicFont());
- font.setBold(settings->boldFont());
+ font.setWeight(settings->fontWeight());
m_fontRequester->setMode(DolphinFontRequester::CustomFont);
m_fontRequester->setCustomFont(font);
}