Verified Commit 409930d4 authored by Luca Beltrame's avatar Luca Beltrame
Browse files

Fix build with the latest kwidgetsaddons deprecations

parent 8b9fda38
Pipeline #76128 passed with stage
in 23 minutes and 57 seconds
......@@ -43,6 +43,7 @@ using namespace PimCommon::ConfigureImmutableWidgetUtils;
#include <AkonadiCore/TagModifyJob>
#include "kmail_debug.h"
#include <kwidgetsaddons_version.h>
#include <KColorScheme>
#include <KFontChooser>
#include <KIconButton>
......@@ -170,7 +171,12 @@ AppearancePageFontsTab::AppearancePageFontsTab(QWidget *parent)
hlay->addWidget(mFontLocationCombo);
hlay->addStretch(10);
#if KWIDGETSADDONS_VERSION < QT_VERSION_CHECK(5,86,0)
mFontChooser = new KFontChooser(this, KFontChooser::DisplayFrame, QStringList(), 4);
#else
mFontChooser = new KFontChooser(KFontChooser::DisplayFrame, this);
mFontChooser->setMinVisibleItems(4);
#endif
mFontChooser->setEnabled(false); // since !mCustomFontCheck->isChecked()
vlay->addWidget(mFontChooser);
connect(mFontChooser, &KFontChooser::fontSelected, this, &ConfigModuleTab::slotEmitChanged);
......
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