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
845a43fe
Commit
845a43fe
authored
Sep 26, 2021
by
Laurent Montel
😁
Browse files
Remove some qOverload as we remove deprecated qt5.15 signal
parent
09806745
Pipeline
#82752
canceled with stage
Changes
8
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/ksieveui/autocreatescripts/sieveactionwidgetlister.cpp
View file @
845a43fe
...
...
@@ -160,7 +160,7 @@ void SieveActionWidget::initWidget()
updateGeometry
();
connect
(
mComboBox
,
qOverload
<
int
>
(
&
QComboBox
::
activated
)
,
this
,
&
SieveActionWidget
::
slotActionChanged
);
connect
(
mComboBox
,
&
QComboBox
::
activated
,
this
,
&
SieveActionWidget
::
slotActionChanged
);
mAdd
=
new
QPushButton
(
this
);
mAdd
->
setIcon
(
QIcon
::
fromTheme
(
QStringLiteral
(
"list-add"
)));
...
...
src/ksieveui/autocreatescripts/sieveconditions/sieveconditionexists.cpp
View file @
845a43fe
...
...
@@ -35,7 +35,7 @@ QWidget *SieveConditionExists::createParamWidget(QWidget *parent) const
combo
->
addItem
(
i18n
(
"exists"
),
QStringLiteral
(
"exists"
));
combo
->
addItem
(
i18n
(
"not exists"
),
QStringLiteral
(
"not exists"
));
lay
->
addWidget
(
combo
);
connect
(
combo
,
qOverload
<
int
>
(
&
QComboBox
::
activated
)
,
this
,
&
SieveConditionExists
::
valueChanged
);
connect
(
combo
,
&
QComboBox
::
activated
,
this
,
&
SieveConditionExists
::
valueChanged
);
auto
lab
=
new
QLabel
(
i18n
(
"headers:"
));
lay
->
addWidget
(
lab
);
...
...
src/ksieveui/autocreatescripts/sieveconditions/sieveconditionsize.cpp
View file @
845a43fe
...
...
@@ -33,7 +33,7 @@ QWidget *SieveConditionSize::createParamWidget(QWidget *parent) const
combo
->
addItem
(
i18n
(
"under"
),
QStringLiteral
(
":under"
));
combo
->
addItem
(
i18n
(
"over"
),
QStringLiteral
(
":over"
));
lay
->
addWidget
(
combo
);
connect
(
combo
,
qOverload
<
int
>
(
&
QComboBox
::
activated
)
,
this
,
&
SieveConditionSize
::
valueChanged
);
connect
(
combo
,
&
QComboBox
::
activated
,
this
,
&
SieveConditionSize
::
valueChanged
);
auto
sizeWidget
=
new
SelectSizeWidget
;
connect
(
sizeWidget
,
&
SelectSizeWidget
::
valueChanged
,
this
,
&
SieveConditionSize
::
valueChanged
);
...
...
src/ksieveui/autocreatescripts/sieveconditions/widgets/selectbodytypewidget.cpp
View file @
845a43fe
...
...
@@ -35,7 +35,7 @@ void SelectBodyTypeWidget::initialize()
mBodyCombobox
->
addItem
(
i18n
(
"raw"
),
QStringLiteral
(
":raw"
));
mBodyCombobox
->
addItem
(
i18n
(
"content"
),
QStringLiteral
(
":content"
));
mBodyCombobox
->
addItem
(
i18n
(
"text"
),
QStringLiteral
(
":text"
));
connect
(
mBodyCombobox
,
qOverload
<
int
>
(
&
QComboBox
::
activated
)
,
this
,
&
SelectBodyTypeWidget
::
slotBodyTypeChanged
);
connect
(
mBodyCombobox
,
&
QComboBox
::
activated
,
this
,
&
SelectBodyTypeWidget
::
slotBodyTypeChanged
);
mBodyLineEdit
=
new
QLineEdit
(
this
);
new
KPIM
::
LineEditCatchReturnKey
(
mBodyLineEdit
,
this
);
...
...
src/ksieveui/autocreatescripts/sieveconditions/widgets/selectdatewidget.cpp
View file @
845a43fe
...
...
@@ -36,7 +36,7 @@ void SelectDateWidget::initialize()
lay
->
setContentsMargins
({});
mDateType
=
new
QComboBox
(
this
);
connect
(
mDateType
,
qOverload
<
int
>
(
&
QComboBox
::
activated
)
,
this
,
&
SelectDateWidget
::
slotDateTypeActivated
);
connect
(
mDateType
,
&
QComboBox
::
activated
,
this
,
&
SelectDateWidget
::
slotDateTypeActivated
);
mDateType
->
addItem
(
i18n
(
"Year"
),
QVariant
::
fromValue
(
KSieveUi
::
SelectDateWidget
::
Year
));
mDateType
->
addItem
(
i18n
(
"Month"
),
QVariant
::
fromValue
(
KSieveUi
::
SelectDateWidget
::
Month
));
mDateType
->
addItem
(
i18n
(
"Day"
),
QVariant
::
fromValue
(
KSieveUi
::
SelectDateWidget
::
Day
));
...
...
src/ksieveui/autocreatescripts/sieveconditions/widgets/selectrelationalmatchtype.cpp
View file @
845a43fe
...
...
@@ -57,7 +57,7 @@ void SelectRelationalMatchType::initialize()
mType
->
addItem
(
i18n
(
"Value"
),
QStringLiteral
(
":value"
));
mType
->
addItem
(
i18n
(
"Count"
),
QStringLiteral
(
":count"
));
lay
->
addWidget
(
mType
);
connect
(
mType
,
qOverload
<
int
>
(
&
QComboBox
::
activated
)
,
this
,
&
SelectRelationalMatchType
::
valueChanged
);
connect
(
mType
,
&
QComboBox
::
activated
,
this
,
&
SelectRelationalMatchType
::
valueChanged
);
mMatch
->
addItem
(
i18n
(
"Greater than"
),
QStringLiteral
(
"gt"
));
mMatch
->
addItem
(
i18n
(
"Greater than or equal"
),
QStringLiteral
(
"ge"
));
...
...
@@ -65,6 +65,6 @@ void SelectRelationalMatchType::initialize()
mMatch
->
addItem
(
i18n
(
"Less than or equal"
),
QStringLiteral
(
"le"
));
mMatch
->
addItem
(
i18n
(
"Equal to"
),
QStringLiteral
(
"eq"
));
mMatch
->
addItem
(
i18n
(
"Not equal to"
),
QStringLiteral
(
"ne"
));
connect
(
mMatch
,
qOverload
<
int
>
(
&
QComboBox
::
activated
)
,
this
,
&
SelectRelationalMatchType
::
valueChanged
);
connect
(
mMatch
,
&
QComboBox
::
activated
,
this
,
&
SelectRelationalMatchType
::
valueChanged
);
lay
->
addWidget
(
mMatch
);
}
src/ksieveui/autocreatescripts/sieveconditionwidgetlister.cpp
View file @
845a43fe
...
...
@@ -118,7 +118,7 @@ void SieveConditionWidget::initWidget()
mComboBox
->
addItem
(
QLatin1String
(
""
));
mLayout
->
addWidget
(
mComboBox
,
1
,
2
);
connect
(
mComboBox
,
qOverload
<
int
>
(
&
QComboBox
::
activated
)
,
this
,
&
SieveConditionWidget
::
slotConditionChanged
);
connect
(
mComboBox
,
&
QComboBox
::
activated
,
this
,
&
SieveConditionWidget
::
slotConditionChanged
);
mComboBox
->
setMaxCount
(
mComboBox
->
count
());
mComboBox
->
setSizePolicy
(
QSizePolicy
(
QSizePolicy
::
Preferred
,
QSizePolicy
::
Fixed
));
...
...
src/ksieveui/vacation/vacationeditwidget.cpp
View file @
845a43fe
...
...
@@ -178,7 +178,7 @@ VacationEditWidget::VacationEditWidget(QWidget *parent)
mMailAction
->
addItem
(
VacationUtils
::
mailAction
(
static_cast
<
VacationUtils
::
MailAction
>
(
i
)));
}
mMailAction
->
setObjectName
(
QStringLiteral
(
"mMailAction"
));
connect
(
mMailAction
,
qOverload
<
int
>
(
&
QComboBox
::
currentIndexChanged
)
,
this
,
&
VacationEditWidget
::
mailActionChanged
);
connect
(
mMailAction
,
&
QComboBox
::
currentIndexChanged
,
this
,
&
VacationEditWidget
::
mailActionChanged
);
// Add imap select folder plugin here.
mMailActionRecipient
=
new
VacationMailActionWidget
(
this
);
...
...
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