diff options
| author | Montel Laurent <[email protected]> | 2014-10-07 07:38:16 +0200 |
|---|---|---|
| committer | Montel Laurent <[email protected]> | 2014-10-07 07:38:16 +0200 |
| commit | 5c1420fec990f268b9abbbaedbe45b9388f1fddd (patch) | |
| tree | 548fcbd2238714fd06072004cd5343b625fe4a1f /src/search/dolphinsearchbox.cpp | |
| parent | a705337fab20e230a3f990624f5f7de3b2468b3f (diff) | |
kdelibs4support--
Diffstat (limited to 'src/search/dolphinsearchbox.cpp')
| -rw-r--r-- | src/search/dolphinsearchbox.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/search/dolphinsearchbox.cpp b/src/search/dolphinsearchbox.cpp index 0fb1e41d7..efb17faf6 100644 --- a/src/search/dolphinsearchbox.cpp +++ b/src/search/dolphinsearchbox.cpp @@ -46,6 +46,7 @@ #include <Baloo/Query> #include <Baloo/Term> #include <Baloo/IndexerConfig> +#include <QFontDatabase> #endif DolphinSearchBox::DolphinSearchBox(QWidget* parent) : @@ -324,7 +325,7 @@ void DolphinSearchBox::saveSettings() SearchSettings::setLocation(m_fromHereButton->isChecked() ? "FromHere" : "Everywhere"); SearchSettings::setWhat(m_fileNameButton->isChecked() ? "FileName" : "Content"); SearchSettings::setShowFacetsWidget(m_facetsToggleButton->isChecked()); - SearchSettings::self()->writeConfig(); + SearchSettings::self()->save(); } void DolphinSearchBox::init() @@ -351,7 +352,7 @@ void DolphinSearchBox::init() m_searchInput = new KLineEdit(this); m_searchInput->installEventFilter(this); m_searchInput->setClearButtonShown(true); - m_searchInput->setFont(KGlobalSettings::generalFont()); + m_searchInput->setFont(QFontDatabase::systemFont(QFontDatabase::GeneralFont)); connect(m_searchInput, &KLineEdit::returnPressed, this, &DolphinSearchBox::slotReturnPressed); connect(m_searchInput, &KLineEdit::textChanged, |
