<div class="gmail_quote">On Sat, Mar 13, 2010 at 9:23 AM, Boudewijn Rempt <span dir="ltr">&lt;<a href="mailto:boud@valdyas.org">boud@valdyas.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div></div><div class="h5">On Saturday 13 March 2010, Sven Langkamp wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; when looking at the recent changes to use the new slider I found several<br>
&gt; places where is wasn&#39;t used correctly. (using the integer methods that does<br>
&gt; consider the factor)<br>
&gt; Therefor I propose the api changed in the attached patch. By not longer<br>
&gt; inheriting from QAbstractSlider it hides the internal api.<br>
&gt;<br>
&gt; That way we can still use the current value/setValue and valueChanged<br>
&gt; signal.<br>
&gt;<br>
&gt; When changing a slider the signal connection needs to be checked, because<br>
&gt; the old slider often had different parameter there.<br>
&gt; I know it&#39;s a bit stupid to change it now, but it reduces the risk of using<br>
&gt; the api in the wrong way.<br>
<br>
</div></div>Does this make it impossible to use the slider for integer values? We have a<br>
number of places where we use integers, like opacity etc.<br></blockquote><div> <br>Not impossible, you could set decimals to 0 and round the resulting values.<br>If we don&#39;t make the change than you have to be careful to use the right method.<br>
At the moment e.g. the gradient tool threshold is broken because of that.<br></div></div>