diff options
| author | Nathaniel Graham <[email protected]> | 2018-06-26 16:46:50 -0600 |
|---|---|---|
| committer | Nathaniel Graham <[email protected]> | 2018-06-27 14:29:48 -0600 |
| commit | b488dc01260e3a279380af0d344e26ae2d447342 (patch) | |
| tree | 763f13314412e838c446f4506c3cae481b38b6eb /src/settings/viewmodes/dolphinfontrequester.cpp | |
| parent | 280c97448141d0685806b46af4c80a354f601f26 (diff) | |
Port from KComboBox to QComboBox
Summary: None of Dolphin's current usages of `KComboBox` use any of its additional features beyond `QComboBox`, so let's use `QComboBox` instead.
Test Plan: Tested all features that use comboboxes in Dolphin. No visual or functional changes or regressions.
Reviewers: #dolphin, elvisangelaccio, broulik
Reviewed By: #dolphin, elvisangelaccio
Subscribers: broulik, kfm-devel
Tags: #dolphin
Differential Revision: https://phabricator.kde.org/D13749
Diffstat (limited to 'src/settings/viewmodes/dolphinfontrequester.cpp')
| -rw-r--r-- | src/settings/viewmodes/dolphinfontrequester.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/settings/viewmodes/dolphinfontrequester.cpp b/src/settings/viewmodes/dolphinfontrequester.cpp index 0a9eb166c..ff42e39aa 100644 --- a/src/settings/viewmodes/dolphinfontrequester.cpp +++ b/src/settings/viewmodes/dolphinfontrequester.cpp @@ -19,9 +19,9 @@ #include "dolphinfontrequester.h" -#include <KComboBox> #include <KLocalizedString> +#include <QComboBox> #include <QFontDatabase> #include <QFontDialog> #include <QHBoxLayout> @@ -37,10 +37,10 @@ DolphinFontRequester::DolphinFontRequester(QWidget* parent) : QHBoxLayout* topLayout = new QHBoxLayout(this); topLayout->setMargin(0); - m_modeCombo = new KComboBox(this); + m_modeCombo = new QComboBox(this); m_modeCombo->addItem(i18nc("@item:inlistbox Font", "System Font")); m_modeCombo->addItem(i18nc("@item:inlistbox Font", "Custom Font")); - connect(m_modeCombo, static_cast<void(KComboBox::*)(int)>(&KComboBox::activated), + connect(m_modeCombo, static_cast<void(QComboBox::*)(int)>(&QComboBox::activated), this, &DolphinFontRequester::changeMode); m_chooseFontButton = new QPushButton(i18nc("@action:button Choose font", "Choose..."), this); |
