diff options
Diffstat (limited to 'tdeui/knuminput.cpp')
-rw-r--r-- | tdeui/knuminput.cpp | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/tdeui/knuminput.cpp b/tdeui/knuminput.cpp index 46f7f2b5c..0820fd29b 100644 --- a/tdeui/knuminput.cpp +++ b/tdeui/knuminput.cpp @@ -298,9 +298,9 @@ void KIntNumInput::init(int val, int _base) if (_base != 10) m_spin->setValidator(new KIntValidator(this, _base, "KNumInput::KIntValidtr")); - connect(m_spin, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(spinValueChanged(int))); - connect(this, TQT_SIGNAL(valueChanged(int)), - TQT_SLOT(slotEmitRelativeValueChanged(int))); + connect(m_spin, TQ_SIGNAL(valueChanged(int)), TQ_SLOT(spinValueChanged(int))); + connect(this, TQ_SIGNAL(valueChanged(int)), + TQ_SLOT(slotEmitRelativeValueChanged(int))); setFocusProxy(m_spin); layout(true); @@ -344,10 +344,10 @@ void KIntNumInput::setRange(int lower, int upper, int step, bool slider) m_slider->setRange(lower, upper); else { m_slider = new TQSlider(lower, upper, step, m_spin->value(), - Qt::Horizontal, this); + TQt::Horizontal, this); m_slider->setTickmarks(TQSlider::Below); - connect(m_slider, TQT_SIGNAL(valueChanged(int)), - m_spin, TQT_SLOT(setValue(int))); + connect(m_slider, TQ_SIGNAL(valueChanged(int)), + m_spin, TQ_SLOT(setValue(int))); } // calculate (upper-lower)/10 without overflowing int's: @@ -616,10 +616,10 @@ void KDoubleNumInput::init(double value, double lower, double upper, d->spin = new KDoubleSpinBox( lower, upper, step, value, precision, this, "KDoubleNumInput::d->spin" ); setFocusProxy(d->spin); - connect( d->spin, TQT_SIGNAL(valueChanged(double)), - this, TQT_SIGNAL(valueChanged(double)) ); - connect( this, TQT_SIGNAL(valueChanged(double)), - this, TQT_SLOT(slotEmitRelativeValueChanged(double)) ); + connect( d->spin, TQ_SIGNAL(valueChanged(double)), + this, TQ_SIGNAL(valueChanged(double)) ); + connect( this, TQ_SIGNAL(valueChanged(double)), + this, TQ_SLOT(slotEmitRelativeValueChanged(double)) ); updateLegacyMembers(); @@ -754,8 +754,8 @@ void KDoubleNumInput::setRange(double lower, double upper, double step, if( m_slider ) { // don't update the slider to avoid an endless recursion TQSpinBox * spin = d->spin; - disconnect(spin, TQT_SIGNAL(valueChanged(int)), - m_slider, TQT_SLOT(setValue(int)) ); + disconnect(spin, TQ_SIGNAL(valueChanged(int)), + m_slider, TQ_SLOT(setValue(int)) ); } d->spin->setRange( lower, upper, step, d->spin->precision() ); @@ -771,14 +771,14 @@ void KDoubleNumInput::setRange(double lower, double upper, double step, m_slider->setValue(slvalue); } else { m_slider = new TQSlider(slmin, slmax, slstep, slvalue, - Qt::Horizontal, this); + TQt::Horizontal, this); m_slider->setTickmarks(TQSlider::Below); // feedback line: when one moves, the other moves, too: - connect(m_slider, TQT_SIGNAL(valueChanged(int)), - TQT_SLOT(sliderMoved(int)) ); + connect(m_slider, TQ_SIGNAL(valueChanged(int)), + TQ_SLOT(sliderMoved(int)) ); } - connect(spin, TQT_SIGNAL(valueChanged(int)), - m_slider, TQT_SLOT(setValue(int)) ); + connect(spin, TQ_SIGNAL(valueChanged(int)), + m_slider, TQ_SLOT(setValue(int)) ); // calculate ( slmax - slmin ) / 10 without overflowing ints: int major = calcDiffByTen( slmax, slmin ); if ( !major ) major = slstep; // ### needed? @@ -901,7 +901,7 @@ class KDoubleSpinBoxValidator : public KDoubleValidator { public: KDoubleSpinBoxValidator( double bottom, double top, int decimals, KDoubleSpinBox* sb, const char *name ) - : KDoubleValidator( bottom, top, decimals, TQT_TQOBJECT(sb), name ), spinBox( sb ) { } + : KDoubleValidator( bottom, top, decimals, sb, name ), spinBox( sb ) { } virtual State validate( TQString& str, int& pos ) const; @@ -1011,10 +1011,10 @@ public: KDoubleSpinBox::KDoubleSpinBox( TQWidget * parent, const char * name ) : TQSpinBox( parent, name ) { - editor()->setAlignment( Qt::AlignRight ); + editor()->setAlignment( TQt::AlignRight ); d = new Private(); updateValidator(); - connect( this, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotValueChanged(int)) ); + connect( this, TQ_SIGNAL(valueChanged(int)), TQ_SLOT(slotValueChanged(int)) ); } KDoubleSpinBox::KDoubleSpinBox( double lower, double upper, double step, @@ -1022,11 +1022,11 @@ KDoubleSpinBox::KDoubleSpinBox( double lower, double upper, double step, TQWidget * parent, const char * name ) : TQSpinBox( parent, name ) { - editor()->setAlignment( Qt::AlignRight ); + editor()->setAlignment( TQt::AlignRight ); d = new Private(); setRange( lower, upper, step, precision ); setValue( value ); - connect( this, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(slotValueChanged(int)) ); + connect( this, TQ_SIGNAL(valueChanged(int)), TQ_SLOT(slotValueChanged(int)) ); } KDoubleSpinBox::~KDoubleSpinBox() { |