Commit afcffe4a authored by Ahmad Samir's avatar Ahmad Samir Committed by Kurt Hindenburg
Browse files

Port away from deprecated KFontChooser constructor

parent 16928469
......@@ -13,6 +13,7 @@
// KDE
#include <KLocalizedString>
#include <kwidgetsaddons_version.h>
using namespace Konsole;
......@@ -24,7 +25,12 @@ FontDialog::FontDialog(QWidget *parent) :
{
setWindowTitle(i18nc("@title:window", "Select font"));
#if KWIDGETSADDONS_VERSION >= QT_VERSION_CHECK(5, 86, 0)
_fontChooser = new KFontChooser(KFontChooser::FixedFontsOnly, this);
#else
_fontChooser = new KFontChooser(this, KFontChooser::FixedFontsOnly);
#endif
_showAllFonts = new QCheckBox(i18nc("@action:button", "Show all fonts"), this);
_showAllFontsWarningButton = new QToolButton(this);
_buttonBox = new QDialogButtonBox(QDialogButtonBox::Ok |
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment