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
PIM
libkdepim
Commits
d13db80f
Commit
d13db80f
authored
Apr 15, 2019
by
Laurent Montel
Browse files
Use qOverload directly
parent
e020ab88
Changes
7
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
d13db80f
...
...
@@ -70,7 +70,7 @@ else()
add_definitions
(
-DQT_DISABLE_DEPRECATED_BEFORE=0x060000
)
endif
()
add_definitions
(
-DQT_NO_FOREACH
)
set
(
CMAKE_CXX_STANDARD 14
)
########### CMake Config Files ###########
set
(
CMAKECONFIG_INSTALL_DIR
"
${
KDE_INSTALL_CMAKEPACKAGEDIR
}
/KF5Libkdepim"
)
...
...
src/libkdepim/ldap/kcmldap.cpp
View file @
d13db80f
...
...
@@ -52,7 +52,7 @@ KCMLdap::KCMLdap(QWidget *parent, const QVariantList &)
mLdapConfigureWidget
=
new
KLDAP
::
LdapConfigureWidget
(
this
);
layout
->
addWidget
(
mLdapConfigureWidget
);
connect
(
mLdapConfigureWidget
,
&
KLDAP
::
LdapConfigureWidget
::
changed
,
this
,
Q
Overload
<
bool
>
::
of
(
&
KCMLdap
::
changed
));
connect
(
mLdapConfigureWidget
,
&
KLDAP
::
LdapConfigureWidget
::
changed
,
this
,
q
Overload
<
bool
>
(
&
KCMLdap
::
changed
));
}
KCMLdap
::~
KCMLdap
()
...
...
src/libkdepim/ldap/ldapclientsearch.cpp
View file @
d13db80f
...
...
@@ -195,7 +195,7 @@ void LdapClientSearch::Private::readConfig()
q
,
[
this
]()
{
slotLDAPDone
();
});
q
->
connect
(
ldapClient
,
Q
Overload
<
const
QString
&>
::
of
(
&
LdapClient
::
error
),
q
->
connect
(
ldapClient
,
q
Overload
<
const
QString
&>
(
&
LdapClient
::
error
),
q
,
[
this
](
const
QString
&
str
)
{
slotLDAPError
(
str
);
});
...
...
src/libkdepim/ldap/ldapsearchdialog.cpp
View file @
d13db80f
...
...
@@ -580,7 +580,7 @@ LdapSearchDialog::LdapSearchDialog(QWidget *parent)
d
->
mResultView
->
verticalHeader
()
->
hide
();
d
->
mResultView
->
setSortingEnabled
(
true
);
d
->
mResultView
->
horizontalHeader
()
->
setSortIndicatorShown
(
true
);
connect
(
d
->
mResultView
,
Q
Overload
<
const
QModelIndex
&>
::
of
(
&
QTableView
::
clicked
),
this
,
[
this
]()
{
connect
(
d
->
mResultView
,
q
Overload
<
const
QModelIndex
&>
(
&
QTableView
::
clicked
),
this
,
[
this
]()
{
d
->
slotSelectionChanged
();
});
topLayout
->
addWidget
(
d
->
mResultView
);
...
...
src/libkdepim/prefs/kprefsdialog.cpp
View file @
d13db80f
...
...
@@ -148,7 +148,7 @@ KPrefsWidInt::KPrefsWidInt(KConfigSkeleton::ItemInt *item, QWidget *parent)
if
(
!
mItem
->
maxValue
().
isNull
())
{
mSpin
->
setMaximum
(
mItem
->
maxValue
().
toInt
());
}
connect
(
mSpin
,
Q
Overload
<
int
>
::
of
(
&
QSpinBox
::
valueChanged
),
this
,
&
KPrefsWidInt
::
changed
);
connect
(
mSpin
,
q
Overload
<
int
>
(
&
QSpinBox
::
valueChanged
),
this
,
&
KPrefsWidInt
::
changed
);
mLabel
->
setBuddy
(
mSpin
);
QString
toolTip
=
mItem
->
toolTip
();
if
(
!
toolTip
.
isEmpty
())
{
...
...
@@ -434,7 +434,7 @@ KPrefsWidRadios::KPrefsWidRadios(KConfigSkeleton::ItemEnum *item, QWidget *paren
mBox
=
new
QGroupBox
(
mItem
->
label
(),
parent
);
new
QVBoxLayout
(
mBox
);
mGroup
=
new
QButtonGroup
(
parent
);
connect
(
mGroup
,
Q
Overload
<
int
>
::
of
(
&
QButtonGroup
::
buttonClicked
),
this
,
&
KPrefsWidRadios
::
changed
);
connect
(
mGroup
,
q
Overload
<
int
>
(
&
QButtonGroup
::
buttonClicked
),
this
,
&
KPrefsWidRadios
::
changed
);
}
KPrefsWidRadios
::~
KPrefsWidRadios
()
...
...
@@ -484,7 +484,7 @@ KPrefsWidCombo::KPrefsWidCombo(KConfigSkeleton::ItemEnum *item, QWidget *parent)
{
mLabel
=
new
QLabel
(
mItem
->
label
(),
parent
);
mCombo
=
new
KComboBox
(
parent
);
connect
(
mCombo
,
Q
Overload
<
int
>
::
of
(
&
KComboBox
::
activated
),
this
,
&
KPrefsWidCombo
::
changed
);
connect
(
mCombo
,
q
Overload
<
int
>
(
&
KComboBox
::
activated
),
this
,
&
KPrefsWidCombo
::
changed
);
mLabel
->
setBuddy
(
mCombo
);
QString
toolTip
=
mItem
->
toolTip
();
if
(
!
toolTip
.
isEmpty
())
{
...
...
src/libkdepim/widgets/kcheckcombobox.cpp
View file @
d13db80f
...
...
@@ -138,7 +138,7 @@ KCheckComboBox::KCheckComboBox(QWidget *parent)
:
KComboBox
(
parent
)
,
d
(
new
KCheckComboBox
::
Private
(
this
))
{
connect
(
this
,
Q
Overload
<
int
>
::
of
(
&
KComboBox
::
activated
),
this
,
[
this
]()
{
connect
(
this
,
q
Overload
<
int
>
(
&
KComboBox
::
activated
),
this
,
[
this
]()
{
d
->
toggleCheckState
();
});
connect
(
model
(),
&
QAbstractItemModel
::
rowsInserted
,
this
,
...
...
src/libkdepimakonadi/addressline/addresslineedit/addresseelineedit_p.cpp
View file @
d13db80f
...
...
@@ -138,12 +138,12 @@ void AddresseeLineEditPrivate::init()
this
,
&
AddresseeLineEditPrivate
::
slotReturnPressed
);
KCompletionBox
*
box
=
q
->
completionBox
();
connect
(
box
,
Q
Overload
<
const
QString
&>
::
of
(
&
KCompletionBox
::
activated
),
connect
(
box
,
q
Overload
<
const
QString
&>
(
&
KCompletionBox
::
activated
),
this
,
&
AddresseeLineEditPrivate
::
slotPopupCompletion
);
connect
(
box
,
&
KCompletionBox
::
userCancelled
,
this
,
&
AddresseeLineEditPrivate
::
slotUserCancelled
);
connect
(
AddresseeLineEditManager
::
self
()
->
ldapTimer
(),
&
QTimer
::
timeout
,
this
,
&
AddresseeLineEditPrivate
::
slotStartLDAPLookup
);
connect
(
AddresseeLineEditManager
::
self
()
->
ldapSearch
(),
Q
Overload
<
const
KLDAP
::
LdapResult
::
List
&>
::
of
(
&
KLDAP
::
LdapClientSearch
::
searchData
),
connect
(
AddresseeLineEditManager
::
self
()
->
ldapSearch
(),
q
Overload
<
const
KLDAP
::
LdapResult
::
List
&>
(
&
KLDAP
::
LdapClientSearch
::
searchData
),
this
,
&
AddresseeLineEditPrivate
::
slotLDAPSearchData
);
mCompletionInitialized
=
true
;
...
...
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