Add step parameter to DoubleInput QInputDialog
David Faure
faure at kde.org
Thu May 2 13:30:11 UTC 2013
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!
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.
And meanwhile we can deprecate getItemList in favour of Qt's getItem.
--
David Faure, faure at kde.org, http://www.davidfaure.fr
Working on KDE, in particular KDE Frameworks 5
More information about the Kde-frameworks-devel
mailing list