diff options
Diffstat (limited to 'krita/ui/kis_int_spinbox.h')
-rw-r--r-- | krita/ui/kis_int_spinbox.h | 56 |
1 files changed, 29 insertions, 27 deletions
diff --git a/krita/ui/kis_int_spinbox.h b/krita/ui/kis_int_spinbox.h index 873a2f39..a5c4602e 100644 --- a/krita/ui/kis_int_spinbox.h +++ b/krita/ui/kis_int_spinbox.h @@ -20,40 +20,41 @@ #ifndef KIS_INT_SPINBOX_H_ #define KIS_INT_SPINBOX_H_ -#include <qwidget.h> -#include <qspinbox.h> -#include <qslider.h> -#include <qpopupmenu.h> +#include <tqwidget.h> +#include <tqspinbox.h> +#include <tqslider.h> +#include <tqpopupmenu.h> #include <knumvalidator.h> -class QLabel; -class QLineEdit; -class QLayout; -class QValidator; +class TQLabel; +class TQLineEdit; +class TQLayout; +class TQValidator; -class KisPopupSlider : public QPopupMenu { +class KisPopupSlider : public TQPopupMenu { Q_OBJECT + TQ_OBJECT public: - KisPopupSlider(int minValue, int maxValue, int pageStep, int value, Orientation orientation, QWidget * parent, const char * name = 0) - : QPopupMenu(parent, name) + KisPopupSlider(int minValue, int maxValue, int pageStep, int value, Qt::Orientation orientation, TQWidget * tqparent, const char * name = 0) + : TQPopupMenu(tqparent, name) { - m_slider = new QSlider(minValue, maxValue, pageStep, value, orientation, this, name); + m_slider = new TQSlider(minValue, maxValue, pageStep, value, orientation, this, name); //m_slider->setTracking(false); insertItem(m_slider); - connect(m_slider, SIGNAL(valueChanged(int)), SIGNAL(valueChanged(int))); + connect(m_slider, TQT_SIGNAL(valueChanged(int)), TQT_SIGNAL(valueChanged(int))); } void setTickInterval(int i) { m_slider->setTickInterval(i); } void setRange(int minValue, int maxValue) { m_slider->setRange(minValue, maxValue); } void setValue(int val) { m_slider->setValue(val); } - void setTickmarks(QSlider::TickSetting t) { m_slider->setTickmarks(t); } + void setTickmarks(TQSlider::TickSetting t) { m_slider->setTickmarks(t); } int lineStep () const{ return m_slider->lineStep(); } int minValue () const{ return m_slider->minValue(); } int maxValue () const{ return m_slider->maxValue(); } int value () const{ return m_slider->value(); } - QSlider *m_slider; + TQSlider *m_slider; signals: void valueChanged(int); @@ -64,19 +65,20 @@ signals: * @short An input widget for integer numbers, consisting of a spinbox and * a dropdown slider. * - * KisIntSpinbox combines a QSpinBox and a dropdown QSlider + * KisIntSpinbox combines a TQSpinBox and a dropdown TQSlider * to make an easy to use control for setting some integer * parameter. * * */ -class KisIntSpinbox : public QWidget +class KisIntSpinbox : public TQWidget { Q_OBJECT - Q_PROPERTY( int value READ value WRITE setValue ) - Q_PROPERTY( int minValue READ minValue WRITE setMinValue ) - Q_PROPERTY( int maxValue READ maxValue WRITE setMaxValue ) + TQ_OBJECT + TQ_PROPERTY( int value READ value WRITE setValue ) + TQ_PROPERTY( int minValue READ minValue WRITE setMinValue ) + TQ_PROPERTY( int maxValue READ maxValue WRITE setMaxValue ) public: @@ -84,22 +86,22 @@ public: * Constructs an input control for integer values * with base 10 and initial value 0. * - * @param parent parent QWidget + * @param tqparent tqparent TQWidget * @param name internal name for this widget */ - KisIntSpinbox(QWidget *parent=0, const char *name=0); + KisIntSpinbox(TQWidget *tqparent=0, const char *name=0); /** * Constructor - * It constructs a QSpinBox that allows the input of integer numbers + * It constructs a TQSpinBox that allows the input of integer numbers * in the range of -INT_MAX to +INT_MAX. * To enforce the value being in a range, use setRange(). * * @param label the tabel (may contain &, and my be empty) * @param value initial value for the control - * @param parent parent QWidget + * @param tqparent tqparent TQWidget * @param name internal name for this widget */ - KisIntSpinbox(const QString & label, int value, QWidget* parent=0, const char *name=0); + KisIntSpinbox(const TQString & label, int value, TQWidget* tqparent=0, const char *name=0); /** * Destructor @@ -116,7 +118,7 @@ public: /** * @param min minimum value * @param max maximum value - * @param step step size for the QSlider + * @param step step size for the TQSlider */ void setRange(int min, int max, int step=1); /** @@ -144,7 +146,7 @@ public: */ void setSteps(int minor, int major); - void setLabel(const QString & label); + void setLabel(const TQString & label); public slots: /** |