forward also editingFinished
patch by Dario Andres BUG: 180261 svn path=/trunk/KDE/kdelibs/; revision=909009
This commit is contained in:
parent
c11707b2ce
commit
eb7588ae9a
@ -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);
|
||||
|
@ -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;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user