Commit 2a9a8daf authored by Friedrich W. H. Kossebau's avatar Friedrich W. H. Kossebau
Browse files

Port away from deprecated KSelectAction::triggered(int)

parent 8bec2d9b
...@@ -28,6 +28,7 @@ ...@@ -28,6 +28,7 @@
#include "mainWindow/kpMainWindow.h" #include "mainWindow/kpMainWindow.h"
#include "kpMainWindowPrivate.h" #include "kpMainWindowPrivate.h"
#include <kwidgetsaddons_version.h>
#include <KActionCollection> #include <KActionCollection>
#include <KSharedConfig> #include <KSharedConfig>
#include <KConfigGroup> #include <KConfigGroup>
...@@ -61,7 +62,11 @@ void kpMainWindow::setupTextToolBarActions () ...@@ -61,7 +62,11 @@ void kpMainWindow::setupTextToolBarActions ()
d->actionTextFontSize = ac->add<KFontSizeAction> (QStringLiteral("text_font_size")); d->actionTextFontSize = ac->add<KFontSizeAction> (QStringLiteral("text_font_size"));
d->actionTextFontSize->setText (i18n ("Font Size")); d->actionTextFontSize->setText (i18n ("Font Size"));
connect (d->actionTextFontSize, connect (d->actionTextFontSize,
#if KWIDGETSADDONS_VERSION >= QT_VERSION_CHECK(5, 78, 0)
&KSelectAction::indexTriggered,
#else
static_cast<void (KFontSizeAction::*)(int)>(&KFontSizeAction::triggered), static_cast<void (KFontSizeAction::*)(int)>(&KFontSizeAction::triggered),
#endif
this, &kpMainWindow::slotTextFontSizeChanged); this, &kpMainWindow::slotTextFontSizeChanged);
d->actionTextBold = ac->add<KToggleAction> (QStringLiteral("text_bold")); 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