Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Utilities
KDialog
Commits
422179c3
Commit
422179c3
authored
Oct 07, 2020
by
Tristan Miller
Committed by
Harald Sitter
Oct 12, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix --menu, --checklist, and --radiolist usage instructions
BUG: 427415
parent
3a34c761
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
src/kdialog.cpp
src/kdialog.cpp
+6
-6
No files found.
src/kdialog.cpp
View file @
422179c3
...
...
@@ -726,7 +726,7 @@ int main(int argc, char *argv[])
return
-
1
;
}
// --menu text
[
tag item
]
[tag item] ...
// --menu text tag item [tag item] ...
if
(
parser
.
isSet
(
QStringLiteral
(
"menu"
)))
{
QStringList
list
;
if
(
args
.
count
()
>=
2
)
{
...
...
@@ -744,11 +744,11 @@ int main(int argc, char *argv[])
}
return
retcode
?
0
:
1
;
}
cerr
<<
qPrintable
(
i18n
(
"Syntax: --menu text
[
tag item
]
[tag item] ..."
))
<<
endl
;
cerr
<<
qPrintable
(
i18n
(
"Syntax: --menu text tag item [tag item] ..."
))
<<
endl
;
return
-
1
;
}
// --checklist text
[
tag item status
]
[tag item status] ...
// --checklist text tag item status [tag item status] ...
if
(
parser
.
isSet
(
QStringLiteral
(
"checklist"
)))
{
QStringList
list
;
if
(
args
.
count
()
>=
3
)
{
...
...
@@ -768,11 +768,11 @@ int main(int argc, char *argv[])
}
return
retcode
?
0
:
1
;
}
cerr
<<
qPrintable
(
i18n
(
"Syntax: --checklist text
[
tag item on/off
]
[tag item on/off]"
))
<<
endl
;
cerr
<<
qPrintable
(
i18n
(
"Syntax: --checklist text tag item on/off [tag item on/off]
...
"
))
<<
endl
;
return
-
1
;
}
// --radiolist text [tag item status] ...
// --radiolist text
tag item status
[tag item status] ...
if
(
parser
.
isSet
(
QStringLiteral
(
"radiolist"
)))
{
QStringList
list
;
if
(
args
.
count
()
>=
3
)
{
...
...
@@ -786,7 +786,7 @@ int main(int argc, char *argv[])
cout
<<
result
.
toLocal8Bit
().
data
()
<<
endl
;
return
retcode
?
0
:
1
;
}
cerr
<<
qPrintable
(
i18n
(
"Syntax: --radiolist text [tag item on/off] ..."
))
<<
endl
;
cerr
<<
qPrintable
(
i18n
(
"Syntax: --radiolist text
tag item on/off
[tag item on/off] ..."
))
<<
endl
;
return
-
1
;
}
...
...
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