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
KCalUtils
Commits
a7fe5fbc
Commit
a7fe5fbc
authored
May 01, 2021
by
Laurent Montel
😁
Browse files
modernize code
parent
44677569
Pipeline
#60356
passed with stage
in 4 minutes and 38 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/recurrenceactions.cpp
View file @
a7fe5fbc
...
...
@@ -197,7 +197,7 @@ int RecurrenceActions::questionSelectedAllCancel(const QString &message,
{
QPointer
<
QDialog
>
dialog
=
new
QDialog
(
parent
);
dialog
->
setWindowTitle
(
caption
);
QDialogButtonBox
*
buttonBox
=
new
QDialogButtonBox
(
QDialogButtonBox
::
Ok
|
QDialogButtonBox
::
Cancel
|
QDialogButtonBox
::
No
|
QDialogButtonBox
::
Yes
,
parent
);
auto
buttonBox
=
new
QDialogButtonBox
(
QDialogButtonBox
::
Ok
|
QDialogButtonBox
::
Cancel
|
QDialogButtonBox
::
No
|
QDialogButtonBox
::
Yes
,
parent
);
dialog
->
setObjectName
(
QStringLiteral
(
"RecurrenceActions::questionSelectedAllCancel"
));
KGuiItem
::
assign
(
buttonBox
->
button
(
QDialogButtonBox
::
Yes
),
actionSelected
);
...
...
@@ -232,7 +232,7 @@ int RecurrenceActions::questionSelectedFutureAllCancel(const QString &message,
QPointer
<
QDialog
>
dialog
=
new
QDialog
(
parent
);
dialog
->
setWindowTitle
(
caption
);
QDialogButtonBox
*
buttonBox
=
new
QDialogButtonBox
(
QDialogButtonBox
::
Ok
|
QDialogButtonBox
::
Cancel
|
QDialogButtonBox
::
No
|
QDialogButtonBox
::
Yes
,
parent
);
auto
buttonBox
=
new
QDialogButtonBox
(
QDialogButtonBox
::
Ok
|
QDialogButtonBox
::
Cancel
|
QDialogButtonBox
::
No
|
QDialogButtonBox
::
Yes
,
parent
);
dialog
->
setObjectName
(
QStringLiteral
(
"RecurrenceActions::questionSelectedFutureAllCancel"
));
KGuiItem
::
assign
(
buttonBox
->
button
(
QDialogButtonBox
::
Yes
),
actionSelected
);
KGuiItem
::
assign
(
buttonBox
->
button
(
QDialogButtonBox
::
No
),
actionFuture
);
...
...
Write
Preview
Markdown
is supported
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