Logo Search packages:      
Sourcecode: qt4-x11 version File versions

void QAbstractSpinBox::clear (  )  [virtual, slot, inherited]

Clears the lineedit of all text but prefix and suffix.

Reimplemented in QDateTimeEdit.

Definition at line 448 of file qabstractspinbox.cpp.

Referenced by QAbstractSpinBox::keyPressEvent().

{
    Q_D(QAbstractSpinBox);


    d->edit->setText(d->prefix + d->suffix);
    d->edit->setCursorPosition(d->prefix.size());
}


Generated by  Doxygen 1.6.0   Back to index