diff options
Diffstat (limited to 'src/gui/doublespinbox.h')
-rw-r--r-- | src/gui/doublespinbox.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/src/gui/doublespinbox.h b/src/gui/doublespinbox.h index 75f6c90..6df8f76 100644 --- a/src/gui/doublespinbox.h +++ b/src/gui/doublespinbox.h @@ -11,7 +11,7 @@ #ifndef DOUBLESPINBOX_H #define DOUBLESPINBOX_H -#include <qspinbox.h> +#include <tqspinbox.h> /** Where appropriate, function names with value in them should @@ -20,11 +20,12 @@ spin box plus the SI magnitude symbol it is showing @author David Saxton */ -class DoubleSpinBox : public QSpinBox +class DoubleSpinBox : public TQSpinBox { Q_OBJECT + TQ_OBJECT public: - DoubleSpinBox( double lower, double upper, double minAbs, double value, const QString & unit, QWidget * parent = 0 ); + DoubleSpinBox( double lower, double upper, double minAbs, double value, const TQString & unit, TQWidget * tqparent = 0 ); virtual ~DoubleSpinBox(); /** @@ -69,7 +70,7 @@ class DoubleSpinBox : public QSpinBox /** * Sets the unit used, e.g. "F" */ - void setUnit( const QString & unit ); + void setUnit( const TQString & unit ); public slots: virtual void stepUp(); @@ -88,7 +89,7 @@ class DoubleSpinBox : public QSpinBox */ void checkIfChanged(); /** - * Sets the suffix from m_queuedSuffix. Called from QTimer::singleShot + * Sets the suffix from m_queuedSuffix. Called from TQTimer::singleShot * to avoid strange recursion problems. */ void setQueuedSuffix(); @@ -108,20 +109,20 @@ class DoubleSpinBox : public QSpinBox */ double getDisplayedNumber( bool * ok ); /** - * Overloaded the method in QSpinxBox to allow SI prefixes to be entered + * Overloaded the method in TQSpinxBox to allow SI prefixes to be entered */ virtual int mapTextToValue( bool * ok ); /** - * Overloaded the method in QSpinxBox to allow SI prefixes to be entered + * Overloaded the method in TQSpinxBox to allow SI prefixes to be entered */ - virtual QString mapValueToText( int v ); + virtual TQString mapValueToText( int v ); /** * Returns value rounded off to one significant figure. */ double roundToOneSF( double value ); - QString m_queuedSuffix; ///< Used - QString m_unit; + TQString m_queuedSuffix; ///< Used + TQString m_unit; double m_minValue; double m_maxValue; double m_minAbsValue; |