I generally agree and I will update the API to reflect this, so the
slider range becomes 0-1 by default with a step size of 0 to keep it
consistent with the progress bar.

However, there is one minor problem with this. I would argue 0-100 is
more human friendly. Especially considering how certain implementations
show a formatted text label over the slider handle. Before it would be
in a human readable range, but now the default slider will show a random
floating point value. Ideally that should perhaps show percentage or at
the very least limited to one decimal place. Right now it is just
floored to an integer and the default slider label looks a bit odd. 

Not really a big argument against the shorter range, but it does make it
look a bit odd as a default configuration.

Jens


wrote:
> A slider with max value 1 makes perfect sense. We are in any case just 
> guessing what the developer will need here. It might be 0 to 10, -10 to 10, 0 
> to 1, 0 to 100, 0 to 99, or anything really. 0 to 1 is the least arbitrary of 
> these and the step size can be 0 and thus disabled by default, which would be 
> a reasonable default in any case.
> 
> Peppe
> ________________________________________
> From: ext Artur Souza (MoRpHeUz) [artur.so...@openbossa.org]
> Sent: Monday, January 24, 2011 12:59
> To: Saether Jan-Arve (Nokia-MS-Qt/Oslo)
> Cc: Lundqvist Petrus (Nokia-MS/Helsinki); anselmo.m...@openbossa.org; 
> qt-components@qt.nokia.com
> Subject: Re: [Qt-components] maximumValues in the common API
> 
> On Mon, Jan 24, 2011 at 5:28 AM,  <jan-arve.saet...@nokia.com> wrote:
> > Yes, ideally they should be the same, and the range should preferrably
> > be in the range [0..1]. But if we change maximumValue to 1, should
> > stepSize still be 1? (This leaves two steps, so by default the
> > Slider could almost be mistaken to be a switch :-)
> 
> Hmm... I think that he was talking about just the ProgressBar. The
> slider itself doesn't have much meaning with a maximumValue of 1
> because of what you said...however the progress bar seems ok with it
> (and it also doesn't have a stepSize what makes things easier :) )
> 
> 
> Cheers!
> 
> --
> -------------------------------------------------------
> Artur Duque de Souza
> openBossa
> INdT - Instituto Nokia de Tecnologia
> -------------------------------------------------------
> Blog: http://blog.morpheuz.cc
> PGP: 0xDBEEAAC3 @ wwwkeys.pgp.net
> -------------------------------------------------------
> _______________________________________________
> Qt-components mailing list
> Qt-components@qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-components

_______________________________________________
Qt-components mailing list
Qt-components@qt.nokia.com
http://lists.qt.nokia.com/mailman/listinfo/qt-components

Reply via email to