From b488dc01260e3a279380af0d344e26ae2d447342 Mon Sep 17 00:00:00 2001 From: Nathaniel Graham Date: Tue, 26 Jun 2018 16:46:50 -0600 Subject: 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 --- src/settings/viewmodes/dolphinfontrequester.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/settings/viewmodes/dolphinfontrequester.cpp') 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 #include +#include #include #include #include @@ -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(&KComboBox::activated), + connect(m_modeCombo, static_cast(&QComboBox::activated), this, &DolphinFontRequester::changeMode); m_chooseFontButton = new QPushButton(i18nc("@action:button Choose font", "Choose..."), this); -- cgit v1.3