Registered Member
|
Hi everyone!
I recently started digging into service menus and all that fancy stuff and really started enjoying it! I'm currently working on a service menu that allows the conversion from one set of files to another set of files. What I would like to do now is to have an inputbox that allows the user to specify extra options for the conversion. However, as this conversion does not neccesserely need any extra flags, I would like to leave the inputbox empty, but still give the user the possibility to hit "Ok" if they don't want to specify any extra options
If this is not possible at all that would not be too bad either. I could have a simple flag like "-verbose" as default in the inputbox. Now, the problem that I am facing is that I do not seem to be able to properly escape the "-" at the beginning and kdialog keeps thinking this is an option I'm trying to specify for its own execution:
Escaping the "-" in the traditional way unfortunately keeps the backslash in the input window:
Also pre-defining verbose as a variable doesn't work either. Is there any way to either keep the field empty and have the user still press "Ok" or to have an input beginning with a special character? Thank you very much in advance! |
Manager
|
moved to KDE Development -> Helping Hands
|
Registered Member
|
OK, I figured it out
Specifying "--" as "end of options" as noted in the help of kdialog solves it
|
Registered users: Bing [Bot], Google [Bot], Sogou [Bot]