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

List:       kde-core-devel
Subject:    KDoubleNumInput is _more_ than confusing
From:       Claudiu Costin <claudiuc () work ! ro>
Date:       2001-07-30 6:51:51
[Download RAW message or body]

    Hello friends,

 I traced down problem with KDoubleNumInput.
Programers are confused. Right from knuminput.h
documentation:

-------------------------------------------------------------------------
 * KDoubleNumInput combines a @ref QSpinBox and optionally a @ref QSlider
 * with a label to make an easy to use control for setting some float
 * parameter. This is especially nice for configuration dialogs,
 * which can have many such combinated controls.
-------------------------------------------------------------------------


Right from KDoubleNumInput implementation:

-------------------------------------------------------------------------
void KDoubleNumInput::init(double value)                                         
{
    m_value = value;
    m_format = qstrdup("%.2f");
    m_range = false;
 
    edit = new KDoubleLine(this, "KDoubleNumInput::QLineEdit");
-------------------------------------------------------------------------

but KDoubleLine is derived from:
-------------------------------------------------------------------------
class KDoubleLine : public QLineEdit
-------------------------------------------------------------------------

Where is the QSpinBox? I was very disapointed when I found this.
Any programmer (user) have need to be able to increment rational values
and not only integers, and even with spinbox arrows.

Could this be fixed?

P.S. There is a bug as I said 3-4 weeks ago: If increment is 1 and editline
is at e.g. 0.5, then press Up key, then content is put to 2.0 and not 1.5
Same for Down key


kind regards,
-- 
Claudiu Costin
<claudiuc@work.ro>

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

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