diff options
Diffstat (limited to 'krecipes/src/widgets/fractioninput.cpp')
-rw-r--r-- | krecipes/src/widgets/fractioninput.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/krecipes/src/widgets/fractioninput.cpp b/krecipes/src/widgets/fractioninput.cpp index e9ceac1..3754805 100644 --- a/krecipes/src/widgets/fractioninput.cpp +++ b/krecipes/src/widgets/fractioninput.cpp @@ -10,20 +10,20 @@ #include "fractioninput.h" -#include <qtimer.h> +#include <ntqtimer.h> #include <kglobalsettings.h> #include "datablocks/ingredient.h" -FractionInput::FractionInput( QWidget *parent, MixedNumber::Format format ) : KLineEdit( parent ), +FractionInput::FractionInput( TQWidget *parent, MixedNumber::Format format ) : KLineEdit( parent ), m_allowRange(false), - m_validateTimer(new QTimer(this)), + m_validateTimer(new TQTimer(this)), m_format(format) { - setAlignment( Qt::AlignRight ); + setAlignment( TQt::AlignRight ); - connect( this, SIGNAL(textChanged(const QString&)), this, SLOT(slotStartValidateTimer()) ); + connect( this, SIGNAL(textChanged(const TQString&)), this, SLOT(slotStartValidateTimer()) ); connect( m_validateTimer, SIGNAL(timeout()), this, SLOT(validate()) ); } @@ -40,7 +40,7 @@ void FractionInput::setValue( double d, double amount_offset ) void FractionInput::setValue( const MixedNumber &m, double amount_offset ) { - QString text = m.toString( m_format ); + TQString text = m.toString( m_format ); if ( amount_offset > 0 ) { text += "-" + MixedNumber(m+amount_offset).toString( MixedNumber::MixedNumberFormat ); } @@ -110,7 +110,7 @@ void FractionInput::validate() setPaletteForegroundColor( KGlobalSettings::textColor() ); } else - setPaletteForegroundColor( Qt::red ); + setPaletteForegroundColor( TQt::red ); } bool FractionInput::isEmpty() const |