Add step parameter to DoubleInput QInputDialog
Kevin Krammer
krammer at kde.org
Fri May 10 07:27:44 UTC 2013
On Friday, 2013-05-10, David Faure wrote:
> On Wednesday 08 May 2013 17:26:17 David Gil Oliva wrote:
> > Therefore, I think that it would be best to add a static method called
> > getItemFromListView. What do you think?
>
> Option 1: adding getItemFromListView (the name looks a bit odd)
> Option 2: adding a getItem overload that takes an InputDialogOptions
> parameter, so that this will be ready for more options if any, in the
> future. Option 3: porting coded to the multi-line call (constructor,
> setComboBoxItems, setOptions).
>
> In my opinion option 2 is best if not too ugly (not sure where to add the
> additional argument, depends how many default values there are etc.),
> otherwise option 3 (depending on how many calls to getItem we actually
> have...).
Wouldn't it have to be a new method, i.e. getItems (plural) with single
selection being one of its modes?
Also needed to replace KInputDialog::getItemList(), no?
Cheers,
Kevin
--
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20130510/7ebbb0de/attachment.sig>
More information about the Kde-frameworks-devel
mailing list