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
libkleo
Commits
b95f62e3
Commit
b95f62e3
authored
Aug 30, 2021
by
Laurent Montel
Browse files
Use qOverload directly (scripted)
parent
1792abbe
Pipeline
#77327
passed with stage
in 8 minutes and 9 seconds
Changes
5
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/ui/cryptoconfigmodule.cpp
View file @
b95f62e3
...
...
@@ -648,7 +648,7 @@ Kleo::CryptoConfigEntryDebugLevel::CryptoConfigEntryDebugLevel(CryptoConfigModul
label
->
setEnabled
(
false
);
mComboBox
->
setEnabled
(
false
);
}
else
{
connect
(
mComboBox
,
Q
Overload
<
int
>
::
of
(
&
QComboBox
::
currentIndexChanged
),
connect
(
mComboBox
,
q
Overload
<
int
>
(
&
QComboBox
::
currentIndexChanged
),
this
,
&
CryptoConfigEntryDebugLevel
::
slotChanged
);
}
...
...
@@ -784,7 +784,7 @@ Kleo::CryptoConfigEntrySpinBox::CryptoConfigEntrySpinBox(
}
else
{
mNumInput
->
setMinimum
(
mKind
==
Int
?
std
::
numeric_limits
<
int
>::
min
()
:
0
);
mNumInput
->
setMaximum
(
std
::
numeric_limits
<
int
>::
max
());
connect
(
mNumInput
,
Q
Overload
<
int
>
::
of
(
&
QSpinBox
::
valueChanged
),
this
,
&
CryptoConfigEntrySpinBox
::
slotChanged
);
connect
(
mNumInput
,
q
Overload
<
int
>
(
&
QSpinBox
::
valueChanged
),
this
,
&
CryptoConfigEntrySpinBox
::
slotChanged
);
}
}
...
...
src/ui/keyapprovaldialog.cpp
View file @
b95f62e3
...
...
@@ -147,7 +147,7 @@ Kleo::KeyApprovalDialog::KeyApprovalDialog(const std::vector<Item> &recipients,
cb
->
addItems
(
prefs
);
glay
->
addWidget
(
cb
,
row
,
1
);
cb
->
setCurrentIndex
(
pref2cb
(
it
->
pref
));
connect
(
cb
,
Q
Overload
<
int
>
::
of
(
&
QComboBox
::
activated
),
this
,
&
KeyApprovalDialog
::
slotPrefsChanged
);
connect
(
cb
,
q
Overload
<
int
>
(
&
QComboBox
::
activated
),
this
,
&
KeyApprovalDialog
::
slotPrefsChanged
);
d
->
preferences
.
push_back
(
cb
);
}
...
...
src/ui/keyselectioncombo.cpp
View file @
b95f62e3
...
...
@@ -436,7 +436,7 @@ KeySelectionCombo::KeySelectionCombo(bool secretOnly, QWidget* parent)
d
->
proxyModel
->
setSourceModel
(
d
->
sortFilterProxy
);
setModel
(
d
->
proxyModel
);
connect
(
this
,
Q
Overload
<
int
>
::
of
(
&
QComboBox
::
currentIndexChanged
),
connect
(
this
,
q
Overload
<
int
>
(
&
QComboBox
::
currentIndexChanged
),
this
,
[
this
](
int
row
)
{
if
(
row
>=
0
&&
row
<
d
->
proxyModel
->
rowCount
())
{
if
(
d
->
proxyModel
->
isCustomItem
(
row
))
{
...
...
@@ -510,7 +510,7 @@ void KeySelectionCombo::init()
Q_EMIT
keyListingFinished
();
}
connect
(
this
,
Q
Overload
<
int
>
::
of
(
&
QComboBox
::
currentIndexChanged
),
this
,
[
this
]
()
{
connect
(
this
,
q
Overload
<
int
>
(
&
QComboBox
::
currentIndexChanged
),
this
,
[
this
]
()
{
setToolTip
(
currentData
(
Qt
::
ToolTipRole
).
toString
());
});
}
...
...
src/ui/keyselectiondialog.cpp
View file @
b95f62e3
...
...
@@ -534,8 +534,8 @@ void Kleo::KeySelectionDialog::connectSignals()
if
(
mKeyListView
->
isMultiSelection
())
{
connect
(
mKeyListView
,
&
QTreeWidget
::
itemSelectionChanged
,
this
,
&
KeySelectionDialog
::
slotSelectionChanged
);
}
else
{
connect
(
mKeyListView
,
Q
Overload
<
KeyListViewItem
*>
::
of
(
&
KeyListView
::
selectionChanged
),
this
,
Q
Overload
<
KeyListViewItem
*>
::
of
(
&
KeySelectionDialog
::
slotCheckSelection
));
connect
(
mKeyListView
,
q
Overload
<
KeyListViewItem
*>
(
&
KeyListView
::
selectionChanged
),
this
,
q
Overload
<
KeyListViewItem
*>
(
&
KeySelectionDialog
::
slotCheckSelection
));
}
}
...
...
@@ -545,8 +545,8 @@ void Kleo::KeySelectionDialog::disconnectSignals()
disconnect
(
mKeyListView
,
&
QTreeWidget
::
itemSelectionChanged
,
this
,
&
KeySelectionDialog
::
slotSelectionChanged
);
}
else
{
disconnect
(
mKeyListView
,
Q
Overload
<
KeyListViewItem
*>
::
of
(
&
KeyListView
::
selectionChanged
),
this
,
Q
Overload
<
KeyListViewItem
*>
::
of
(
&
KeySelectionDialog
::
slotCheckSelection
));
disconnect
(
mKeyListView
,
q
Overload
<
KeyListViewItem
*>
(
&
KeyListView
::
selectionChanged
),
this
,
q
Overload
<
KeyListViewItem
*>
(
&
KeySelectionDialog
::
slotCheckSelection
));
}
}
...
...
src/ui/newkeyapprovaldialog.cpp
View file @
b95f62e3
...
...
@@ -561,7 +561,7 @@ public:
connect
(
combo
,
&
KeySelectionCombo
::
currentKeyChanged
,
q
,
[
this
]
()
{
updateOkButton
();
});
connect
(
combo
,
Q
Overload
<
int
>
::
of
(
&
QComboBox
::
currentIndexChanged
),
q
,
[
this
]
()
{
connect
(
combo
,
q
Overload
<
int
>
(
&
QComboBox
::
currentIndexChanged
),
q
,
[
this
]
()
{
updateOkButton
();
});
...
...
@@ -658,7 +658,7 @@ public:
connect
(
combo
,
&
KeySelectionCombo
::
currentKeyChanged
,
q
,
[
this
]
()
{
updateOkButton
();
});
connect
(
combo
,
Q
Overload
<
int
>
::
of
(
&
QComboBox
::
currentIndexChanged
),
q
,
[
this
]
()
{
connect
(
combo
,
q
Overload
<
int
>
(
&
QComboBox
::
currentIndexChanged
),
q
,
[
this
]
()
{
updateOkButton
();
});
...
...
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