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
PIM
KPimTextEdit
Commits
e4d8ae4e
Commit
e4d8ae4e
authored
Sep 26, 2021
by
Laurent Montel
😁
Browse files
Not necessary to use qOverload here
parent
52831901
Pipeline
#82767
passed with stage
in 9 minutes and 34 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/composer-ng/richtextcomposeractions.cpp
View file @
e4d8ae4e
...
...
@@ -320,7 +320,7 @@ void RichTextComposerActions::createActions(KActionCollection *ac)
ac
->
addAction
(
QStringLiteral
(
"format_list_style"
),
d
->
action_list_style
);
}
connect
(
d
->
action_list_style
,
&
KSelectAction
::
indexTriggered
,
this
,
&
RichTextComposerActions
::
setListStyle
);
connect
(
d
->
action_list_style
,
qOverload
<
bool
>
(
&
QAction
::
triggered
)
,
this
,
&
RichTextComposerActions
::
slotUpdateMiscActions
);
connect
(
d
->
action_list_style
,
&
QAction
::
triggered
,
this
,
&
RichTextComposerActions
::
slotUpdateMiscActions
);
d
->
action_paste_quotation
=
new
QAction
(
i18n
(
"Pa&ste as Quotation"
),
this
);
d
->
action_paste_quotation
->
setObjectName
(
QStringLiteral
(
"paste_quoted"
));
if
(
ac
)
{
...
...
src/composer-ng/richtextexternalcomposer.cpp
View file @
e4d8ae4e
...
...
@@ -110,7 +110,7 @@ void RichTextExternalComposer::startExternalEditor()
(
*
d
->
externalEditorProcess
)
<<
d
->
extEditorTempFile
->
fileName
();
}
connect
(
d
->
externalEditorProcess
,
qOverload
<
int
,
QProcess
::
ExitStatus
>
(
&
KProcess
::
finished
)
,
this
,
&
RichTextExternalComposer
::
slotEditorFinished
);
connect
(
d
->
externalEditorProcess
,
&
KProcess
::
finished
,
this
,
&
RichTextExternalComposer
::
slotEditorFinished
);
d
->
externalEditorProcess
->
start
();
if
(
!
d
->
externalEditorProcess
->
waitForStarted
())
{
d
->
cannotStartProcess
(
commandLine
);
...
...
src/insertimagewidget.cpp
View file @
e4d8ae4e
...
...
@@ -81,7 +81,7 @@ public:
width
->
setEnabled
(
false
);
width
->
setSuffix
(
i18n
(
" px"
));
lab
->
setBuddy
(
width
);
q
->
connect
(
width
,
qOverload
<
int
>
(
&
QSpinBox
::
valueChanged
)
,
q
,
[
this
](
int
val
)
{
q
->
connect
(
width
,
&
QSpinBox
::
valueChanged
,
q
,
[
this
](
int
val
)
{
_k_slotImageWidthChanged
(
val
);
});
hbox
->
addWidget
(
lab
);
...
...
@@ -96,7 +96,7 @@ public:
height
->
setEnabled
(
false
);
height
->
setSuffix
(
i18n
(
" px"
));
lab
->
setBuddy
(
height
);
q
->
connect
(
height
,
qOverload
<
int
>
(
&
QSpinBox
::
valueChanged
)
,
q
,
[
this
](
int
val
)
{
q
->
connect
(
height
,
&
QSpinBox
::
valueChanged
,
q
,
[
this
](
int
val
)
{
_k_slotImageHeightChanged
(
val
);
});
hbox
->
addWidget
(
lab
);
...
...
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