Add step parameter to DoubleInput QInputDialog

David Gil Oliva davidgiloliva at gmail.com
Thu May 2 14:31:40 UTC 2013


Hi!

El 02/05/2013 15:30, "David Faure" <faure at kde.org> va escriure:
>
> On Thursday 02 May 2013 13:07:34 David Faure wrote:
> > > BTW, the definition of QInputDialog says that it "provides a simple
> > > convenience dialog to get a single value from the user." The future
new
> > > method getItemList will be able to return more than one value (in a
> > > QStringList, for example). It will force me to change the
documentation
> > > and
> > > the definition. We will see, what the reviews say.
>
> Hold on, Kévin and I just had a look at all the users of getItemList, to
see
> if it was really used.
>
> It turns out that it *is* used (in knewstuff, kile, kmymoney and
libkcddb),
> but in all cases, the application then takes the first one out of the
returned
> list!

Ok, but I think it would be more logical to have the QListView to only
allow one value. Otherwise the user could select more than one value, and
have only one of them returned.

> Why don't they just use getItem then? The answer: because getItem shows a
> closed combobox, while getItemList shows a much nicer flat list, which
shows
> multiple items to the user.
>
> So the real solution is not to add getItemList to Qt, but rather to change
> Qt's getItem to use a QListView rather than a QComboBox, in order to
improve
> usability.

Ok

> And meanwhile we can deprecate getItemList in favour of Qt's getItem.

Ok

David Gil
www.hackingastrology.net

> --
> David Faure, faure at kde.org, http://www.davidfaure.fr
> Working on KDE, in particular KDE Frameworks 5
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20130502/44b91f88/attachment.html>


More information about the Kde-frameworks-devel mailing list