Help with task: equivalent of KInputDialog::getDouble with configurable step in QInputDialog
David Gil Oliva
davidgiloliva at gmail.com
Wed Apr 24 19:49:59 UTC 2013
Hi!
I'm doing this task:
IN PROGRESSQInputDialog should have an equivalent of
KInputDialog::getDouble with configurable stepDavid Gil (
https://codereview.qt-project.org/54378)
The thing is that there are two ugly alternatives (Giuseppe d'Angelo):
If you really want an overload taking a step, you need a new overload and
arrange the arguments in a way that you don't have an ambiguous overload
with this one -- usually it means adding it at the end and making all
parameters w/o default values (eww). Or, adding a getDoubleWithStep method
(eww again).
Lars Knoll then says:
I'd go for the getDoubleWithStep() method. It's a bit ugly, but at least it
won't lead to hidden bugs.
Before I do anything I'd like to ask to this mailing list whether I should
add that getDoubleWithStep() method or I should abandon the task.
Best regards,
David Gil
www.hackingastrology.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20130424/16900410/attachment.html>
More information about the Kde-frameworks-devel
mailing list