diff options
Diffstat (limited to 'lib/koproperty/editors/spinbox.cpp')
-rw-r--r-- | lib/koproperty/editors/spinbox.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/koproperty/editors/spinbox.cpp b/lib/koproperty/editors/spinbox.cpp index b90485bb..c72a060d 100644 --- a/lib/koproperty/editors/spinbox.cpp +++ b/lib/koproperty/editors/spinbox.cpp @@ -48,7 +48,7 @@ IntSpinBox::IntSpinBox(int lower, int upper, int step, int value, int base, IntE void IntSpinBox::setValue(const TQVariant &value) { - if (dynamic_cast<IntEdit*>(tqparentWidget()) && dynamic_cast<IntEdit*>(tqparentWidget())->isReadOnly()) + if (dynamic_cast<IntEdit*>(parentWidget()) && dynamic_cast<IntEdit*>(parentWidget())->isReadOnly()) return; if (value.isNull()) editor()->clear(); @@ -66,13 +66,13 @@ IntSpinBox::eventFilter(TQObject *o, TQEvent *e) TQKeyEvent* ev = TQT_TQKEYEVENT(e); if((ev->key()==Key_Up || ev->key()==Key_Down) && ev->state() !=ControlButton) { - tqparentWidget()->eventFilter(o, e); + parentWidget()->eventFilter(o, e); return true; } } } if ((TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(editor()) || TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(this) || TQT_BASE_OBJECT(o->tqparent()) == TQT_BASE_OBJECT(this)) - && e->type() == TQEvent::Wheel && static_cast<IntEdit*>(tqparentWidget())->isReadOnly()) + && e->type() == TQEvent::Wheel && static_cast<IntEdit*>(parentWidget())->isReadOnly()) { return true; //avoid value changes for read-only widget } @@ -199,13 +199,13 @@ DoubleSpinBox::eventFilter(TQObject *o, TQEvent *e) TQKeyEvent* ev = TQT_TQKEYEVENT(e); if((ev->key()==Key_Up || ev->key()==Key_Down) && ev->state()!=ControlButton) { - tqparentWidget()->eventFilter(o, e); + parentWidget()->eventFilter(o, e); return true; } } } if ((TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(editor()) || TQT_BASE_OBJECT(o) == TQT_BASE_OBJECT(this) || TQT_BASE_OBJECT(o->tqparent()) == TQT_BASE_OBJECT(this)) - && e->type() == TQEvent::Wheel && static_cast<IntEdit*>(tqparentWidget())->isReadOnly()) + && e->type() == TQEvent::Wheel && static_cast<IntEdit*>(parentWidget())->isReadOnly()) { return true; //avoid value changes for read-only widget } @@ -216,7 +216,7 @@ DoubleSpinBox::eventFilter(TQObject *o, TQEvent *e) void DoubleSpinBox::setValue( const TQVariant& value ) { - if (dynamic_cast<DoubleEdit*>(tqparentWidget()) && dynamic_cast<DoubleEdit*>(tqparentWidget())->isReadOnly()) + if (dynamic_cast<DoubleEdit*>(parentWidget()) && dynamic_cast<DoubleEdit*>(parentWidget())->isReadOnly()) return; if (value.isNull()) editor()->clear(); |