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
Utilities
KDialog
Commits
8e4ecf70
Commit
8e4ecf70
authored
Sep 29, 2022
by
Laurent Montel
Browse files
Sorry is deprecated
parent
409ec584
Pipeline
#238302
passed with stage
in 40 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/kdialog.cpp
View file @
8e4ecf70
...
...
@@ -421,11 +421,11 @@ int main(int argc, char *argv[])
icon
=
QMessageBox
::
Warning
;
}
else
if
(
parser
.
isSet
(
QStringLiteral
(
"sorry"
)))
{
option
=
"sorry"
;
type
=
KMessageBox
::
Sorry
;
type
=
KMessageBox
::
Error
;
icon
=
QMessageBox
::
Warning
;
}
else
if
(
parser
.
isSet
(
QStringLiteral
(
"detailedsorry"
)))
{
option
=
"detailedsorry"
;
type
=
KMessageBox
::
Sorry
;
type
=
KMessageBox
::
Error
;
icon
=
QMessageBox
::
Warning
;
}
else
if
(
parser
.
isSet
(
QStringLiteral
(
"error"
)))
{
option
=
"error"
;
...
...
@@ -499,7 +499,6 @@ int main(int argc, char *argv[])
KGuiItem
::
assign
(
buttonBox
->
button
(
QDialogButtonBox
::
Yes
),
continueButton
);
KGuiItem
::
assign
(
buttonBox
->
button
(
QDialogButtonBox
::
No
),
cancelButton
);
break
;
case
KMessageBox
::
Sorry
:
case
KMessageBox
::
Error
:
case
KMessageBox
::
Information
:
buttonBox
->
addButton
(
QDialogButtonBox
::
Ok
);
...
...
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