Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Education
Cantor
Commits
cd388be6
Commit
cd388be6
authored
Nov 22, 2021
by
Stefan Gerlach
Browse files
Support older KF5 versions
parent
7715a7e0
Pipeline
#99963
passed with stage
in 18 minutes and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/worksheet.cpp
View file @
cd388be6
...
...
@@ -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
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment