diff options
| author | Emmanuel Pescosta <[email protected]> | 2015-02-26 17:40:06 +0100 |
|---|---|---|
| committer | Emmanuel Pescosta <[email protected]> | 2015-02-26 18:10:42 +0100 |
| commit | 832e157ecd1a1640b82425358b20fff416a2f8b7 (patch) | |
| tree | f7bd0c344151fe3ef6354ae410f9b45b3b7e0a10 /src/settings/viewmodes | |
| parent | 41424d010934e0a47958d0192c7c4de69ea3e955 (diff) | |
Port away from KDELibs4Support (we only use KDELibs4Support when baloo isn't present, because KFileMetaDataWidget is in KDELibs4Support)
Reviewed-By: Vishesh Handa
Diffstat (limited to 'src/settings/viewmodes')
| -rw-r--r-- | src/settings/viewmodes/dolphinfontrequester.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/settings/viewmodes/dolphinfontrequester.cpp b/src/settings/viewmodes/dolphinfontrequester.cpp index 4d8b4813c..b9c5d97cf 100644 --- a/src/settings/viewmodes/dolphinfontrequester.cpp +++ b/src/settings/viewmodes/dolphinfontrequester.cpp @@ -19,13 +19,13 @@ #include "dolphinfontrequester.h" -#include <KFontDialog> #include <KLocalizedString> #include <KComboBox> #include <QHBoxLayout> #include <QPushButton> #include <QFontDatabase> +#include <QFontDialog> DolphinFontRequester::DolphinFontRequester(QWidget* parent) : QWidget(parent), @@ -86,11 +86,9 @@ QFont DolphinFontRequester::customFont() const void DolphinFontRequester::openFontDialog() { - QFont font = m_customFont; - const int result = KFontDialog::getFont(font, - KFontChooser::NoDisplayFlags, - this); - if (result == KFontDialog::Accepted) { + bool ok = false; + const QFont font = QFontDialog::getFont(&ok, this); + if (ok) { m_customFont = font; m_modeCombo->setFont(m_customFont); emit changed(); |
