Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Graphics
KolourPaint
Commits
5d964ed8
Commit
5d964ed8
authored
Dec 26, 2020
by
Friedrich W. H. Kossebau
Browse files
Port away from deprecated KSelectAction::triggered(QString)
parent
2a9a8daf
Changes
1
Hide whitespace changes
Inline
Side-by-side
mainWindow/kpMainWindow_Text.cpp
View file @
5d964ed8
...
...
@@ -56,7 +56,11 @@ 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"
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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