forward also editingFinished

patch by Dario Andres
BUG: 180261

svn path=/trunk/KDE/kdelibs/; revision=909009
This commit is contained in:
Marco Martin 2009-01-10 19:35:29 +00:00
parent c11707b2ce
commit eb7588ae9a
2 changed files with 7 additions and 0 deletions

View File

@ -47,6 +47,7 @@ SpinBox::SpinBox(QGraphicsWidget *parent)
KIntSpinBox *native = new KIntSpinBox;
connect(native, SIGNAL(valueChanged(int)), this, SIGNAL(valueChanged(int)));
connect(native, SIGNAL(editingFinished()), this, SIGNAL(editingFinished()));
setWidget(native);
native->setAttribute(Qt::WA_NoSystemBackground);

View File

@ -124,6 +124,12 @@ Q_SIGNALS:
*/
void valueChanged(int value);
/**
* This signal is emitted when editing is finished.
* This happens when the spinbox loses focus and when enter is pressed.
*/
void editingFinished();
private:
SpinBoxPrivate * const d;
};