┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/search/dolphinsearchbox.cpp
diff options
context:
space:
mode:
authorMontel Laurent <[email protected]>2014-10-07 07:38:16 +0200
committerMontel Laurent <[email protected]>2014-10-07 07:38:16 +0200
commit5c1420fec990f268b9abbbaedbe45b9388f1fddd (patch)
tree548fcbd2238714fd06072004cd5343b625fe4a1f /src/search/dolphinsearchbox.cpp
parenta705337fab20e230a3f990624f5f7de3b2468b3f (diff)
kdelibs4support--
Diffstat (limited to 'src/search/dolphinsearchbox.cpp')
-rw-r--r--src/search/dolphinsearchbox.cpp5
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,