summaryrefslogtreecommitdiffstats
path: root/plugins/infowidget/floatspinbox.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 20:34:15 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-28 20:34:15 +0000
commit1c1403293485f35fd53db45aaa77a01cdd9627e7 (patch)
tree38559cd68cd4f63023fb5f6375def9db3b8b491e /plugins/infowidget/floatspinbox.h
parent894f94545727610df22c4f73911d62d58266f695 (diff)
downloadktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.tar.gz
ktorrent-1c1403293485f35fd53db45aaa77a01cdd9627e7.zip
TQt4 port ktorrent
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/ktorrent@1238733 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'plugins/infowidget/floatspinbox.h')
-rw-r--r--plugins/infowidget/floatspinbox.h15
1 files changed, 8 insertions, 7 deletions
diff --git a/plugins/infowidget/floatspinbox.h b/plugins/infowidget/floatspinbox.h
index 42545bc..8aa4dc8 100644
--- a/plugins/infowidget/floatspinbox.h
+++ b/plugins/infowidget/floatspinbox.h
@@ -22,7 +22,7 @@
#ifndef FLOATSPINBOX_H
#define FLOATSPINBOX_H
-#include <qspinbox.h>
+#include <tqspinbox.h>
namespace kt
{
@@ -31,21 +31,22 @@ namespace kt
* @author Jonas Widarsson
*
* A Spinbox for float values which respects KGlobal::locale().
- * QSpinBox's internal integer value is only
+ * TQSpinBox's internal integer value is only
* used for step detection.
*/
- class FloatSpinBox : public QSpinBox
+ class FloatSpinBox : public TQSpinBox
{
Q_OBJECT
+ TQ_OBJECT
public:
- FloatSpinBox( QWidget* parent=0, const char* name=0 );
- FloatSpinBox( int precision = 2, QWidget* parent=0, const char* name=0 );
+ FloatSpinBox( TQWidget* tqparent=0, const char* name=0 );
+ FloatSpinBox( int precision = 2, TQWidget* tqparent=0, const char* name=0 );
FloatSpinBox( float minValue, float maxValue, float step = 0.5, int precision = 2,
- QWidget* parent=0, const char* name=0 );
+ TQWidget* tqparent=0, const char* name=0 );
virtual ~FloatSpinBox();
- QString mapValueToText( int value );
+ TQString mapValueToText( int value );
int mapTextToValue( bool *ok );