Commit 37c2d3c3 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Check is not necessary as we depend against new kf5

parent 1f8a890d
Pipeline #184454 passed with stage
in 6 minutes and 34 seconds
......@@ -28,7 +28,6 @@
#include "mainWindow/kpMainWindow.h"
#include "kpMainWindowPrivate.h"
#include <kwidgetsaddons_version.h>
#include <KActionCollection>
#include <KSharedConfig>
#include <KConfigGroup>
......@@ -56,21 +55,13 @@ void kpMainWindow::setupTextToolBarActions ()
d->actionTextFontFamily = ac->add<KFontAction> (QStringLiteral("text_font_family"));
d->actionTextFontFamily->setText (i18n ("Font Family"));
connect (d->actionTextFontFamily,
#if KWIDGETSADDONS_VERSION >= QT_VERSION_CHECK(5, 78, 0)
&KSelectAction::textTriggered,
#else
static_cast<void (KFontAction::*)(const QString&)>(&KFontAction::triggered),
#endif
this, &kpMainWindow::slotTextFontFamilyChanged);
d->actionTextFontSize = ac->add<KFontSizeAction> (QStringLiteral("text_font_size"));
d->actionTextFontSize->setText (i18n ("Font Size"));
connect (d->actionTextFontSize,
#if KWIDGETSADDONS_VERSION >= QT_VERSION_CHECK(5, 78, 0)
&KSelectAction::indexTriggered,
#else
static_cast<void (KFontSizeAction::*)(int)>(&KFontSizeAction::triggered),
#endif
this, &kpMainWindow::slotTextFontSizeChanged);
d->actionTextBold = ac->add<KToggleAction> (QStringLiteral("text_bold"));
......
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