summaryrefslogtreecommitdiffstats
path: root/src/gui/doublespinbox.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-29 16:05:55 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-29 16:05:55 +0000
commit87a016680e3677da3993f333561e79eb0cead7d5 (patch)
treecbda2b4df8b8ee0d8d1617e6c75bec1e3ee0ccba /src/gui/doublespinbox.h
parent6ce3d1ad09c1096b5ed3db334e02859e45d5c32b (diff)
downloadktechlab-87a016680e3677da3993f333561e79eb0cead7d5.tar.gz
ktechlab-87a016680e3677da3993f333561e79eb0cead7d5.zip
TQt4 port ktechlab
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktechlab@1238801 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/gui/doublespinbox.h')
-rw-r--r--src/gui/doublespinbox.h21
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;