Commit d4842dbd authored by Ahmad Samir's avatar Ahmad Samir
Browse files

Port away from deprecated KFontChooser methods

parent f892e2fd
......@@ -15,6 +15,7 @@
#include "model/keylistproxymodel.h"
#include "model/kgpgitemmodel.h"
#include <kwidgetsaddons_version.h>
#include <KConfig>
#include <KConfigGroup>
#include <KDesktopFile>
......@@ -47,7 +48,11 @@ kgpgOptions::kgpgOptions(QWidget *parent, KGpgItemModel *model)
m_page6(new ServerConf()),
m_page7(new MiscConf()),
m_serverModel(new GpgServerModel(m_page6)),
#if KWIDGETSADDONS_VERSION >= QT_VERSION_CHECK(5, 86, 0)
m_fontchooser(new KFontChooser(KFontChooser::NoDisplayFlags, m_page3->tabWidget3->widget(1))),
#else
m_fontchooser(new KFontChooser(m_page3->tabWidget3->widget(1), KFontChooser::NoDisplayFlags, QStringList())),
#endif
m_model(model),
m_combomodel(new KeyListProxyModel(this, KeyListProxyModel::SingleColumnIdFirst))
{
......
Markdown is supported
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