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
afafbc19
Commit
afafbc19
authored
Aug 30, 2021
by
Laurent Montel
😁
Browse files
Use qOverload directly (scripted)
parent
1853009a
Pipeline
#77323
passed with stage
in 7 minutes and 26 seconds
Changes
6
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/composer-ng/richtextcomposeractions.cpp
View file @
afafbc19
...
...
@@ -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
,
Q
Overload
<
bool
>
::
of
(
&
QAction
::
triggered
),
this
,
&
RichTextComposerActions
::
slotUpdateMiscActions
);
connect
(
d
->
action_list_style
,
q
Overload
<
bool
>
(
&
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 @
afafbc19
...
...
@@ -110,7 +110,7 @@ void RichTextExternalComposer::startExternalEditor()
(
*
d
->
externalEditorProcess
)
<<
d
->
extEditorTempFile
->
fileName
();
}
connect
(
d
->
externalEditorProcess
,
Q
Overload
<
int
,
QProcess
::
ExitStatus
>
::
of
(
&
KProcess
::
finished
),
this
,
&
RichTextExternalComposer
::
slotEditorFinished
);
connect
(
d
->
externalEditorProcess
,
q
Overload
<
int
,
QProcess
::
ExitStatus
>
(
&
KProcess
::
finished
),
this
,
&
RichTextExternalComposer
::
slotEditorFinished
);
d
->
externalEditorProcess
->
start
();
if
(
!
d
->
externalEditorProcess
->
waitForStarted
())
{
d
->
cannotStartProcess
(
commandLine
);
...
...
src/insertimagewidget.cpp
View file @
afafbc19
...
...
@@ -81,7 +81,7 @@ public:
width
->
setEnabled
(
false
);
width
->
setSuffix
(
i18n
(
" px"
));
lab
->
setBuddy
(
width
);
q
->
connect
(
width
,
Q
Overload
<
int
>
::
of
(
&
QSpinBox
::
valueChanged
),
q
,
[
this
](
int
val
)
{
q
->
connect
(
width
,
q
Overload
<
int
>
(
&
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
,
Q
Overload
<
int
>
::
of
(
&
QSpinBox
::
valueChanged
),
q
,
[
this
](
int
val
)
{
q
->
connect
(
height
,
q
Overload
<
int
>
(
&
QSpinBox
::
valueChanged
),
q
,
[
this
](
int
val
)
{
_k_slotImageHeightChanged
(
val
);
});
hbox
->
addWidget
(
lab
);
...
...
src/inserttablewidget.cpp
View file @
afafbc19
...
...
@@ -47,7 +47,7 @@ public:
gridLayout
->
addWidget
(
mBorder
,
2
,
1
);
mTypeOfLength
=
new
QComboBox
;
q
->
connect
(
mTypeOfLength
,
Q
Overload
<
int
>
::
of
(
&
QComboBox
::
activated
),
q
,
&
InsertTableWidget
::
slotTypeOfLengthChanged
);
q
->
connect
(
mTypeOfLength
,
q
Overload
<
int
>
(
&
QComboBox
::
activated
),
q
,
&
InsertTableWidget
::
slotTypeOfLengthChanged
);
// xgettext: no-c-format
mTypeOfLength
->
addItem
(
i18n
(
"% of windows"
),
QTextLength
::
PercentageLength
);
mTypeOfLength
->
addItem
(
i18n
(
"pixels"
),
QTextLength
::
FixedLength
);
...
...
src/texteditorcompleter.cpp
View file @
afafbc19
...
...
@@ -55,7 +55,7 @@ void TextEditorCompleter::TextEditorCompleterPrivate::createCompleter()
completer
->
setModelSorting
(
QCompleter
::
CaseSensitivelySortedModel
);
completer
->
setCaseSensitivity
(
Qt
::
CaseInsensitive
);
completer
->
setCompletionMode
(
QCompleter
::
PopupCompletion
);
connect
(
completer
,
Q
Overload
<
const
QString
&>
::
of
(
&
QCompleter
::
activated
),
q
,
&
TextEditorCompleter
::
slotCompletion
);
connect
(
completer
,
q
Overload
<
const
QString
&>
(
&
QCompleter
::
activated
),
q
,
&
TextEditorCompleter
::
slotCompletion
);
}
QString
TextEditorCompleter
::
TextEditorCompleterPrivate
::
wordUnderCursor
()
const
...
...
src/texttospeech/texttospeechconfigwidget.cpp
View file @
afafbc19
...
...
@@ -51,19 +51,19 @@ TextToSpeechConfigWidget::TextToSpeechConfigWidget(QWidget *parent)
mAvailableEngine
=
new
QComboBox
(
this
);
mAvailableEngine
->
setObjectName
(
QStringLiteral
(
"engine"
));
layout
->
addRow
(
i18n
(
"Engine:"
),
mAvailableEngine
);
connect
(
mAvailableEngine
,
Q
Overload
<
int
>
::
of
(
&
QComboBox
::
currentIndexChanged
),
this
,
&
TextToSpeechConfigWidget
::
slotEngineChanged
);
connect
(
mAvailableEngine
,
Q
Overload
<
int
>
::
of
(
&
QComboBox
::
currentIndexChanged
),
this
,
&
TextToSpeechConfigWidget
::
valueChanged
);
connect
(
mAvailableEngine
,
q
Overload
<
int
>
(
&
QComboBox
::
currentIndexChanged
),
this
,
&
TextToSpeechConfigWidget
::
slotEngineChanged
);
connect
(
mAvailableEngine
,
q
Overload
<
int
>
(
&
QComboBox
::
currentIndexChanged
),
this
,
&
TextToSpeechConfigWidget
::
valueChanged
);
mLanguage
=
new
KPIMTextEdit
::
TextToSpeechLanguageComboBox
(
this
);
mLanguage
->
setObjectName
(
QStringLiteral
(
"language"
));
layout
->
addRow
(
i18n
(
"Language:"
),
mLanguage
);
connect
(
mAvailableEngine
,
Q
Overload
<
int
>
::
of
(
&
QComboBox
::
currentIndexChanged
),
this
,
&
TextToSpeechConfigWidget
::
slotLanguageChanged
);
connect
(
mLanguage
,
Q
Overload
<
int
>
::
of
(
&
QComboBox
::
currentIndexChanged
),
this
,
&
TextToSpeechConfigWidget
::
valueChanged
);
connect
(
mAvailableEngine
,
q
Overload
<
int
>
(
&
QComboBox
::
currentIndexChanged
),
this
,
&
TextToSpeechConfigWidget
::
slotLanguageChanged
);
connect
(
mLanguage
,
q
Overload
<
int
>
(
&
QComboBox
::
currentIndexChanged
),
this
,
&
TextToSpeechConfigWidget
::
valueChanged
);
mVoice
=
new
QComboBox
(
this
);
mVoice
->
setObjectName
(
QStringLiteral
(
"voice"
));
layout
->
addRow
(
i18n
(
"Voice:"
),
mVoice
);
connect
(
mVoice
,
Q
Overload
<
int
>
::
of
(
&
QComboBox
::
currentIndexChanged
),
this
,
&
TextToSpeechConfigWidget
::
valueChanged
);
connect
(
mVoice
,
q
Overload
<
int
>
(
&
QComboBox
::
currentIndexChanged
),
this
,
&
TextToSpeechConfigWidget
::
valueChanged
);
QTimer
::
singleShot
(
0
,
this
,
&
TextToSpeechConfigWidget
::
slotUpdateSettings
);
}
...
...
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