<div dir="ltr">Hi!<div><br></div><div style>I'm doing this task:</div><div style><br></div><div style><table class="" border="1" cellpadding="5" cellspacing="0" style="max-width:100%;border-collapse:collapse;border-spacing:0px;width:869px;color:rgb(46,52,54);font-family:'Open Sans','Helvetica Neue',Helvetica,Arial,sans-serif;font-size:14px;line-height:22.390625px;border-width:1px;border-style:solid">
<tbody><tr valign="top" style="background-color:rgb(255,255,205)"><td style="padding-left:0px;min-width:48px;text-align:center;vertical-align:middle;background-color:rgb(255,255,160);width:10px">IN PROGRESS</td><td style="vertical-align:middle">
QInputDialog should have an equivalent of KInputDialog::getDouble with configurable step</td><td style="padding-right:0px;width:10px;vertical-align:middle">David Gil (<a rel="nofollow" class="" href="https://codereview.qt-project.org/54378" style="color:rgb(0,104,198);text-decoration:initial">https://codereview.qt-project.org/54378</a>)</td>
</tr></tbody></table><br></div><div style>The thing is that there are two ugly alternatives (Giuseppe d'Angelo):</div><div style><br></div><div style><span style="color:rgb(0,0,0);font-family:'Arial Unicode MS',Arial,sans-serif;background-color:rgb(229,236,249)">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).</span><br>
</div><div style><br></div><div style>Lars Knoll then says:</div><div style><br></div><div style><span style="color:rgb(0,0,0);font-family:'Arial Unicode MS',Arial,sans-serif;background-color:rgb(229,236,249)">I'd go for the getDoubleWithStep() method. It's a bit ugly, but at least it won't lead to hidden bugs.</span><br>
</div><div style><span style="color:rgb(0,0,0);font-family:'Arial Unicode MS',Arial,sans-serif;background-color:rgb(229,236,249)"><br></span></div>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.<br>
<br>Best regards,<br><br>David Gil<br><a href="http://www.hackingastrology.net">www.hackingastrology.net</a><br><div style><br></div></div>