mirror of
https://github.com/KDE/konsole.git
synced 2026-04-29 10:16:54 -04:00
Port away from deprecated KFontChooser constructor
This commit is contained in:
committed by
Kurt Hindenburg
parent
16928469e0
commit
afcffe4aa0
@@ -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 |
|
||||
|
||||
Reference in New Issue
Block a user