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
PimCommon
Commits
10e79a06
Commit
10e79a06
authored
Sep 27, 2021
by
Laurent Montel
😁
Browse files
Not necessary to use qOverload here
parent
488ada49
Pipeline
#82936
passed with stage
in 12 minutes and 50 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/pimcommon/autocorrection/autocorrectionwidget.cpp
View file @
10e79a06
...
...
@@ -105,7 +105,7 @@ AutoCorrectionWidget::AutoCorrectionWidget(QWidget *parent)
connect
(
d
->
ui
->
abbreviationList
,
&
PimCommon
::
AutoCorrectionListWidget
::
deleteSelectedItems
,
this
,
&
AutoCorrectionWidget
::
removeAbbreviationEntry
);
connect
(
d
->
ui
->
twoUpperLetterList
,
&
PimCommon
::
AutoCorrectionListWidget
::
itemSelectionChanged
,
this
,
&
AutoCorrectionWidget
::
slotEnableDisableTwoUpperEntry
);
connect
(
d
->
ui
->
twoUpperLetterList
,
&
PimCommon
::
AutoCorrectionListWidget
::
deleteSelectedItems
,
this
,
&
AutoCorrectionWidget
::
removeTwoUpperLetterEntry
);
connect
(
d
->
ui
->
autocorrectionLanguage
,
qOverload
<
int
>
(
&
PimCommon
::
AutoCorrectionLanguage
::
activated
)
,
this
,
&
AutoCorrectionWidget
::
changeLanguage
);
connect
(
d
->
ui
->
autocorrectionLanguage
,
&
PimCommon
::
AutoCorrectionLanguage
::
activated
,
this
,
&
AutoCorrectionWidget
::
changeLanguage
);
connect
(
d
->
ui
->
addNonBreakingSpaceInFrench
,
&
QCheckBox
::
clicked
,
this
,
&
AutoCorrectionWidget
::
emitChanged
);
connect
(
d
->
ui
->
twoUpperLetter
,
&
QLineEdit
::
returnPressed
,
this
,
&
AutoCorrectionWidget
::
addTwoUpperLetterEntry
);
connect
(
d
->
ui
->
abbreviation
,
&
QLineEdit
::
returnPressed
,
this
,
&
AutoCorrectionWidget
::
addAbbreviationEntry
);
...
...
src/pimcommon/translator/googletranslator.cpp
View file @
10e79a06
...
...
@@ -164,7 +164,7 @@ void GoogleTranslator::translate()
const
QNetworkRequest
request
(
url
);
QNetworkReply
*
reply
=
mNetworkAccessManager
->
get
(
request
);
connect
(
reply
,
qOverload
<
QNetworkReply
::
NetworkError
>
(
&
QNetworkReply
::
errorOccurred
)
,
this
,
&
GoogleTranslator
::
slotError
);
connect
(
reply
,
&
QNetworkReply
::
errorOccurred
,
this
,
&
GoogleTranslator
::
slotError
);
}
void
GoogleTranslator
::
slotError
(
QNetworkReply
::
NetworkError
/*error*/
)
...
...
src/pimcommonakonadi/ldap/ldapsearchdialog.cpp
View file @
10e79a06
...
...
@@ -562,7 +562,7 @@ LdapSearchDialog::LdapSearchDialog(QWidget *parent)
d
->
mResultView
->
verticalHeader
()
->
hide
();
d
->
mResultView
->
setSortingEnabled
(
true
);
d
->
mResultView
->
horizontalHeader
()
->
setSortIndicatorShown
(
true
);
connect
(
d
->
mResultView
,
qOverload
<
const
QModelIndex
&>
(
&
QTableView
::
clicked
)
,
this
,
[
this
]()
{
connect
(
d
->
mResultView
,
&
QTableView
::
clicked
,
this
,
[
this
]()
{
d
->
slotSelectionChanged
();
});
topLayout
->
addWidget
(
d
->
mResultView
);
...
...
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