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
libksieve
Commits
a22b9cd9
Commit
a22b9cd9
authored
Sep 26, 2021
by
Laurent Montel
😁
Browse files
Not necessary to use qOverload here
parent
845a43fe
Pipeline
#82768
passed with stage
in 18 minutes and 12 seconds
Changes
23
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/kmanagesieve/sessionthread.cpp
View file @
a22b9cd9
...
...
@@ -65,7 +65,7 @@ void SessionThread::doInit()
Q_ASSERT
(
QThread
::
currentThread
()
==
thread
());
m_socket
=
std
::
make_unique
<
QSslSocket
>
();
connect
(
m_socket
.
get
(),
&
QSslSocket
::
readyRead
,
this
,
&
SessionThread
::
slotDataReceived
);
connect
(
m_socket
.
get
(),
qOverload
<
QAbstractSocket
::
SocketError
>
(
&
QAbstractSocket
::
errorOccurred
)
,
this
,
&
SessionThread
::
slotSocketError
);
connect
(
m_socket
.
get
(),
&
QAbstractSocket
::
errorOccurred
,
this
,
&
SessionThread
::
slotSocketError
);
connect
(
m_socket
.
get
(),
&
QSslSocket
::
disconnected
,
this
,
&
SessionThread
::
socketDisconnected
);
connect
(
m_socket
.
get
(),
&
QSslSocket
::
connected
,
this
,
&
SessionThread
::
socketConnected
);
}
...
...
src/ksieveui/autocreatescripts/commonwidgets/selectconvertparameterwidget.cpp
View file @
a22b9cd9
...
...
@@ -64,7 +64,7 @@ void SelectConvertParameterWidget::initialize()
mWidth
->
setMaximum
(
9999
);
mWidth
->
setValue
(
300
);
hbox
->
addWidget
(
mWidth
);
connect
(
mWidth
,
qOverload
<
int
>
(
&
QSpinBox
::
valueChanged
)
,
this
,
&
SelectConvertParameterWidget
::
valueChanged
);
connect
(
mWidth
,
&
QSpinBox
::
valueChanged
,
this
,
&
SelectConvertParameterWidget
::
valueChanged
);
auto
lab
=
new
QLabel
(
QStringLiteral
(
"x"
),
this
);
hbox
->
addWidget
(
lab
);
...
...
@@ -76,5 +76,5 @@ void SelectConvertParameterWidget::initialize()
mHeight
->
setValue
(
200
);
hbox
->
addWidget
(
mHeight
);
connect
(
mHeight
,
qOverload
<
int
>
(
&
QSpinBox
::
valueChanged
)
,
this
,
&
SelectConvertParameterWidget
::
valueChanged
);
connect
(
mHeight
,
&
QSpinBox
::
valueChanged
,
this
,
&
SelectConvertParameterWidget
::
valueChanged
);
}
src/ksieveui/autocreatescripts/commonwidgets/selectmatchtypecombobox.cpp
View file @
a22b9cd9
...
...
@@ -16,7 +16,7 @@ SelectMatchTypeComboBox::SelectMatchTypeComboBox(SieveEditorGraphicalModeWidget
{
mHasRegexCapability
=
sieveGraphicalModeWidget
->
sieveCapabilities
().
contains
(
QLatin1String
(
"regex"
));
initialize
();
connect
(
this
,
qOverload
<
int
>
(
&
SelectMatchTypeComboBox
::
activated
)
,
this
,
&
SelectMatchTypeComboBox
::
slotValueChanged
);
connect
(
this
,
&
SelectMatchTypeComboBox
::
activated
,
this
,
&
SelectMatchTypeComboBox
::
slotValueChanged
);
}
SelectMatchTypeComboBox
::~
SelectMatchTypeComboBox
()
...
...
src/ksieveui/autocreatescripts/commonwidgets/selectmimetypecombobox.cpp
View file @
a22b9cd9
...
...
@@ -14,7 +14,7 @@ SelectMimeTypeComboBox::SelectMimeTypeComboBox(QWidget *parent)
:
QComboBox
(
parent
)
{
initialize
();
connect
(
this
,
qOverload
<
int
>
(
&
SelectMimeTypeComboBox
::
activated
)
,
this
,
&
SelectMimeTypeComboBox
::
valueChanged
);
connect
(
this
,
&
SelectMimeTypeComboBox
::
activated
,
this
,
&
SelectMimeTypeComboBox
::
valueChanged
);
}
SelectMimeTypeComboBox
::~
SelectMimeTypeComboBox
()
...
...
src/ksieveui/autocreatescripts/sieveactions/sieveactionextracttext.cpp
View file @
a22b9cd9
...
...
@@ -37,7 +37,7 @@ QWidget *SieveActionExtractText::createParamWidget(QWidget *parent) const
nbCharacters
->
setMaximum
(
99999
);
nbCharacters
->
setObjectName
(
QStringLiteral
(
"numberOfCharacters"
));
grid
->
addWidget
(
nbCharacters
,
0
,
1
);
connect
(
nbCharacters
,
qOverload
<
int
>
(
&
QSpinBox
::
valueChanged
)
,
this
,
&
SieveActionExtractText
::
valueChanged
);
connect
(
nbCharacters
,
&
QSpinBox
::
valueChanged
,
this
,
&
SieveActionExtractText
::
valueChanged
);
lab
=
new
QLabel
(
i18n
(
"Stored in variable name:"
));
grid
->
addWidget
(
lab
,
1
,
0
);
...
...
src/ksieveui/autocreatescripts/sieveactions/sieveactionvacation.cpp
View file @
a22b9cd9
...
...
@@ -51,7 +51,7 @@ QWidget *SieveActionVacation::createParamWidget(QWidget *parent) const
day
->
setMinimum
(
1
);
day
->
setMaximum
(
999
);
day
->
setObjectName
(
QStringLiteral
(
"day"
));
connect
(
day
,
qOverload
<
int
>
(
&
QSpinBox
::
valueChanged
)
,
this
,
&
SieveActionVacation
::
valueChanged
);
connect
(
day
,
&
QSpinBox
::
valueChanged
,
this
,
&
SieveActionVacation
::
valueChanged
);
grid
->
addWidget
(
day
,
0
,
1
);
lab
=
new
QLabel
(
i18n
(
"Message subject:"
));
...
...
src/ksieveui/autocreatescripts/sieveactions/widgets/selectaddheaderpositioncombobox.cpp
View file @
a22b9cd9
...
...
@@ -13,7 +13,7 @@ SelectAddHeaderPositionCombobox::SelectAddHeaderPositionCombobox(QWidget *parent
:
QComboBox
(
parent
)
{
initialize
();
connect
(
this
,
qOverload
<
int
>
(
&
SelectAddHeaderPositionCombobox
::
activated
)
,
this
,
&
SelectAddHeaderPositionCombobox
::
valueChanged
);
connect
(
this
,
&
SelectAddHeaderPositionCombobox
::
activated
,
this
,
&
SelectAddHeaderPositionCombobox
::
valueChanged
);
}
SelectAddHeaderPositionCombobox
::~
SelectAddHeaderPositionCombobox
()
...
...
src/ksieveui/autocreatescripts/sieveactions/widgets/selectimportancecombobox.cpp
View file @
a22b9cd9
...
...
@@ -14,7 +14,7 @@ SelectImportanceCombobox::SelectImportanceCombobox(QWidget *parent)
:
QComboBox
(
parent
)
{
initialize
();
connect
(
this
,
qOverload
<
int
>
(
&
SelectImportanceCombobox
::
activated
)
,
this
,
&
SelectImportanceCombobox
::
valueChanged
);
connect
(
this
,
&
SelectImportanceCombobox
::
activated
,
this
,
&
SelectImportanceCombobox
::
valueChanged
);
}
SelectImportanceCombobox
::~
SelectImportanceCombobox
()
...
...
src/ksieveui/autocreatescripts/sieveactions/widgets/selectvacationcombobox.cpp
View file @
a22b9cd9
...
...
@@ -14,7 +14,7 @@ SelectVacationComboBox::SelectVacationComboBox(QWidget *parent)
:
QComboBox
(
parent
)
{
initialize
();
connect
(
this
,
qOverload
<
int
>
(
&
SelectVacationComboBox
::
activated
)
,
this
,
&
SelectVacationComboBox
::
valueChanged
);
connect
(
this
,
&
SelectVacationComboBox
::
activated
,
this
,
&
SelectVacationComboBox
::
valueChanged
);
}
SelectVacationComboBox
::~
SelectVacationComboBox
()
...
...
src/ksieveui/autocreatescripts/sieveactions/widgets/selectvariablemodifiercombobox.cpp
View file @
a22b9cd9
...
...
@@ -14,7 +14,7 @@ SelectVariableModifierComboBox::SelectVariableModifierComboBox(QWidget *parent)
:
QComboBox
(
parent
)
{
initialize
();
connect
(
this
,
qOverload
<
int
>
(
&
SelectVariableModifierComboBox
::
activated
)
,
this
,
&
SelectVariableModifierComboBox
::
valueChanged
);
connect
(
this
,
&
SelectVariableModifierComboBox
::
activated
,
this
,
&
SelectVariableModifierComboBox
::
valueChanged
);
}
SelectVariableModifierComboBox
::~
SelectVariableModifierComboBox
()
...
...
src/ksieveui/autocreatescripts/sieveconditions/sieveconditionspamtest.cpp
View file @
a22b9cd9
...
...
@@ -54,7 +54,7 @@ QWidget *SieveConditionSpamTest::createParamWidget(QWidget *parent) const
spinbox
->
setMaximum
(
10
);
spinbox
->
setMinimum
(
0
);
spinbox
->
setObjectName
(
QStringLiteral
(
"value"
));
connect
(
spinbox
,
qOverload
<
int
>
(
&
QSpinBox
::
valueChanged
)
,
this
,
&
SieveConditionSpamTest
::
valueChanged
);
connect
(
spinbox
,
&
QSpinBox
::
valueChanged
,
this
,
&
SieveConditionSpamTest
::
valueChanged
);
lay
->
addWidget
(
spinbox
);
return
w
;
}
...
...
src/ksieveui/autocreatescripts/sieveconditions/sieveconditionvirustest.cpp
View file @
a22b9cd9
...
...
@@ -44,7 +44,7 @@ QWidget *SieveConditionVirusTest::createParamWidget(QWidget *parent) const
spinbox
->
setMaximum
(
5
);
spinbox
->
setMinimum
(
0
);
spinbox
->
setObjectName
(
QStringLiteral
(
"value"
));
connect
(
spinbox
,
qOverload
<
int
>
(
&
QSpinBox
::
valueChanged
)
,
this
,
&
SieveConditionVirusTest
::
valueChanged
);
connect
(
spinbox
,
&
QSpinBox
::
valueChanged
,
this
,
&
SieveConditionVirusTest
::
valueChanged
);
lay
->
addWidget
(
spinbox
);
return
w
;
}
...
...
src/ksieveui/autocreatescripts/sieveconditions/widgets/selectaddresspartcombobox.cpp
View file @
a22b9cd9
...
...
@@ -16,7 +16,7 @@ SelectAddressPartComboBox::SelectAddressPartComboBox(SieveEditorGraphicalModeWid
{
mHasSubaddressCapability
=
sieveGraphicalModeWidget
->
sieveCapabilities
().
contains
(
QLatin1String
(
"subaddress"
));
initialize
();
connect
(
this
,
qOverload
<
int
>
(
&
SelectAddressPartComboBox
::
activated
)
,
this
,
&
SelectAddressPartComboBox
::
valueChanged
);
connect
(
this
,
&
SelectAddressPartComboBox
::
activated
,
this
,
&
SelectAddressPartComboBox
::
valueChanged
);
}
SelectAddressPartComboBox
::~
SelectAddressPartComboBox
()
...
...
src/ksieveui/autocreatescripts/sieveconditions/widgets/selectcomparatorcombobox.cpp
View file @
a22b9cd9
...
...
@@ -11,7 +11,7 @@ using namespace KSieveUi;
SelectComparatorComboBox
::
SelectComparatorComboBox
(
SieveEditorGraphicalModeWidget
*
sieveGraphicalModeWidget
,
QWidget
*
parent
)
:
QComboBox
(
parent
)
{
connect
(
this
,
qOverload
<
int
>
(
&
SelectComparatorComboBox
::
activated
)
,
this
,
&
SelectComparatorComboBox
::
valueChanged
);
connect
(
this
,
&
SelectComparatorComboBox
::
activated
,
this
,
&
SelectComparatorComboBox
::
valueChanged
);
initialize
(
sieveGraphicalModeWidget
->
sieveCapabilities
());
}
...
...
src/ksieveui/autocreatescripts/sieveconditions/widgets/selectdatewidget.cpp
View file @
a22b9cd9
...
...
@@ -65,7 +65,7 @@ void SelectDateWidget::initialize()
mDateValue
=
new
SieveDateSpinBox
(
this
);
mStackWidget
->
addWidget
(
mDateValue
);
connect
(
mDateValue
,
qOverload
<
int
>
(
&
QSpinBox
::
valueChanged
)
,
this
,
&
SelectDateWidget
::
valueChanged
);
connect
(
mDateValue
,
&
QSpinBox
::
valueChanged
,
this
,
&
SelectDateWidget
::
valueChanged
);
mDateEdit
=
new
KDateComboBox
(
this
);
mStackWidget
->
addWidget
(
mDateEdit
);
...
...
src/ksieveui/autocreatescripts/sieveconditions/widgets/selectheadertypecombobox.cpp
View file @
a22b9cd9
...
...
@@ -201,7 +201,7 @@ SelectHeaderTypeComboBox::SelectHeaderTypeComboBox(bool onlyEnvelopType, QWidget
initialize
(
onlyEnvelopType
);
connect
(
this
,
&
SelectHeaderTypeComboBox
::
textActivated
,
this
,
&
SelectHeaderTypeComboBox
::
slotSelectItem
);
connect
(
this
,
&
SelectHeaderTypeComboBox
::
editTextChanged
,
this
,
&
SelectHeaderTypeComboBox
::
valueChanged
);
connect
(
this
,
qOverload
<
int
>
(
&
SelectHeaderTypeComboBox
::
activated
)
,
this
,
&
SelectHeaderTypeComboBox
::
valueChanged
);
connect
(
this
,
&
SelectHeaderTypeComboBox
::
activated
,
this
,
&
SelectHeaderTypeComboBox
::
valueChanged
);
}
SelectHeaderTypeComboBox
::~
SelectHeaderTypeComboBox
()
...
...
src/ksieveui/autocreatescripts/sieveconditions/widgets/selectmimecombobox.cpp
View file @
a22b9cd9
...
...
@@ -14,7 +14,7 @@ SelectMimeComboBox::SelectMimeComboBox(QWidget *parent)
:
QComboBox
(
parent
)
{
initialize
();
connect
(
this
,
qOverload
<
int
>
(
&
SelectMimeComboBox
::
activated
)
,
this
,
&
SelectMimeComboBox
::
valueChanged
);
connect
(
this
,
&
SelectMimeComboBox
::
activated
,
this
,
&
SelectMimeComboBox
::
valueChanged
);
}
SelectMimeComboBox
::~
SelectMimeComboBox
()
...
...
src/ksieveui/autocreatescripts/sieveconditions/widgets/selectsizetypecombobox.cpp
View file @
a22b9cd9
...
...
@@ -14,7 +14,7 @@ SelectSizeTypeComboBox::SelectSizeTypeComboBox(QWidget *parent)
:
QComboBox
(
parent
)
{
initialize
();
connect
(
this
,
qOverload
<
int
>
(
&
SelectSizeTypeComboBox
::
activated
)
,
this
,
&
SelectSizeTypeComboBox
::
valueChanged
);
connect
(
this
,
&
SelectSizeTypeComboBox
::
activated
,
this
,
&
SelectSizeTypeComboBox
::
valueChanged
);
}
SelectSizeTypeComboBox
::~
SelectSizeTypeComboBox
()
...
...
src/ksieveui/autocreatescripts/sieveconditions/widgets/selectsizewidget.cpp
View file @
a22b9cd9
...
...
@@ -23,7 +23,7 @@ SelectSizeWidget::SelectSizeWidget(QWidget *parent)
mSpinBoxSize
->
setMinimum
(
1
);
mSpinBoxSize
->
setMaximum
(
99999
);
hbox
->
addWidget
(
mSpinBoxSize
);
connect
(
mSpinBoxSize
,
qOverload
<
int
>
(
&
QSpinBox
::
valueChanged
)
,
this
,
&
SelectSizeWidget
::
valueChanged
);
connect
(
mSpinBoxSize
,
&
QSpinBox
::
valueChanged
,
this
,
&
SelectSizeWidget
::
valueChanged
);
connect
(
mSelectSizeType
,
&
SelectSizeTypeComboBox
::
valueChanged
,
this
,
&
SelectSizeWidget
::
valueChanged
);
hbox
->
addWidget
(
mSelectSizeType
);
...
...
src/ksieveui/autocreatescripts/sieveincludewidget.cpp
View file @
a22b9cd9
...
...
@@ -33,7 +33,7 @@ SieveIncludeLocation::SieveIncludeLocation(QWidget *parent)
:
QComboBox
(
parent
)
{
initialize
();
connect
(
this
,
qOverload
<
int
>
(
&
SieveIncludeLocation
::
activated
)
,
this
,
&
SieveIncludeLocation
::
valueChanged
);
connect
(
this
,
&
SieveIncludeLocation
::
activated
,
this
,
&
SieveIncludeLocation
::
valueChanged
);
}
SieveIncludeLocation
::~
SieveIncludeLocation
()
...
...
Prev
1
2
Next
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