[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    KDoubleNumInput issue
From:       TAnGorN (Anatoli Gorchetchnikov) <anatoli () cns ! bu ! edu>
Date:       2001-08-06 18:11:47
[Download RAW message or body]

Hi guys!

The following piece of code does something weird:
First I initialize three KDoubleNumInputs, the respective functions 
put 4, 1, and 300 as initial values (they return them for sure, I 
checked :)  

d_simLength = new KDoubleNumInput(m_sim->simLengthGet(), this);
d_timeStep = new KDoubleNumInput(TSim::timestepGet(), this);
d_outIntrv = new KDoubleNumInput(m_sim->outfileIntervalGet(), this);

Then I set the ranges (all initial values are within respective 
range) like this:

d_outIntrv->setRange(0.0, d_simLength->value()*1000.0, 0.01, false);
d_simLength->setRange(0.1, 1000.0, 0.1, false);
d_timeStep->setRange(0.01, 100.0, 0.01, false);

Finally, I look at my dialog and see 3.9, 0.99 and 299.99 
respectively. Notice, that precision matches the step parameter in 
setRange. What did I do wrong?

Thanks.

-- 
WBR,
TAnGorN
 
>> Visit http://master.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic