Commit cd388be6 authored by Stefan Gerlach's avatar Stefan Gerlach
Browse files

Support older KF5 versions

parent 7715a7e0
Pipeline #99963 passed with stage
in 18 minutes and 20 seconds
......@@ -37,6 +37,7 @@
#include <QTimer>
#include <QXmlQuery>
#include <kcoreaddons_version.h>
#include <KMessageBox>
#include <KActionCollection>
#include <KFontAction>
......@@ -2066,7 +2067,11 @@ void Worksheet::initActions()
// Font Family
m_fontAction = new KFontAction(i18nc("@action", "&Font"), m_collection);
m_richTextActionList.append(m_fontAction);
#if KCOREADDONS_VERSION >= QT_VERSION_CHECK(5, 78, 0)
connect(m_fontAction, &KFontAction::textTriggered, this, &Worksheet::setFontFamily);
#else
connect(m_fontAction, QOverload<const QString&>::of(&KFontAction::triggered), this, &Worksheet::setFontFamily);
#endif
// Font Size
m_fontSizeAction = new KFontSizeAction(i18nc("@action", "Font &Size"), m_collection);
......
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