summaryrefslogtreecommitdiffstats
path: root/krita/ui/kis_int_spinbox.cc
diff options
context:
space:
mode:
Diffstat (limited to 'krita/ui/kis_int_spinbox.cc')
-rw-r--r--krita/ui/kis_int_spinbox.cc60
1 files changed, 30 insertions, 30 deletions
diff --git a/krita/ui/kis_int_spinbox.cc b/krita/ui/kis_int_spinbox.cc
index 0d5d8c75..2512a78b 100644
--- a/krita/ui/kis_int_spinbox.cc
+++ b/krita/ui/kis_int_spinbox.cc
@@ -2,7 +2,7 @@
* Copyright (c) 2006 Boudewijn Rempt <[email protected]>
* Copyright (c) 2006 Casper Boemann <[email protected]>
*
- * Requires the Qt widget libraries, available at no cost at
+ * Requires the TQt widget libraries, available at no cost at
* http://www.troll.no/
*
* This library is free software; you can redistribute it and/or
@@ -28,16 +28,16 @@
#include <math.h>
#include <algorithm>
-#include <qtimer.h>
-#include <qapplication.h>
-#include <qsize.h>
-#include <qslider.h>
-#include <qstyle.h>
-#include <qlabel.h>
-#include <qpopupmenu.h>
-#include <qlineedit.h>
-#include <qlayout.h>
-#include <qvalidator.h>
+#include <tqtimer.h>
+#include <tqapplication.h>
+#include <tqsize.h>
+#include <tqslider.h>
+#include <tqstyle.h>
+#include <tqlabel.h>
+#include <tqpopupmenu.h>
+#include <tqlineedit.h>
+#include <tqlayout.h>
+#include <tqvalidator.h>
#include <knuminput.h>
#include <kglobal.h>
@@ -56,19 +56,19 @@ public:
KisPopupSlider *m_slider;
KArrowButton *m_arrow;
int m_prevValue;
- QValidator *m_validator;
- QTimer m_timer;
+ TQValidator *m_validator;
+ TQTimer m_timer;
};
-KisIntSpinbox::KisIntSpinbox(QWidget *parent, const char *name)
- : QWidget(parent, name)
+KisIntSpinbox::KisIntSpinbox(TQWidget *tqparent, const char *name)
+ : TQWidget(tqparent, name)
{
init(0);
}
-KisIntSpinbox::KisIntSpinbox(const QString & /*label*/, int val, QWidget *parent, const char *name)
- : QWidget(parent, name)
+KisIntSpinbox::KisIntSpinbox(const TQString & /*label*/, int val, TQWidget *tqparent, const char *name)
+ : TQWidget(tqparent, name)
{
init(val);
}
@@ -76,19 +76,19 @@ KisIntSpinbox::KisIntSpinbox(const QString & /*label*/, int val, QWidget *parent
void KisIntSpinbox::init(int val)
{
d = new KisIntSpinboxPrivate( );
- QBoxLayout * l = new QHBoxLayout( this );
+ TQBoxLayout * l = new TQHBoxLayout( this );
l->insertStretch(0, 1);
d->m_numinput = new KIntSpinBox(0, 100, 1, val, 10, this, "KisIntSpinbox::KIntSpinBox");
- d->m_numinput->setSizePolicy(QSizePolicy::MinimumExpanding, QSizePolicy::Fixed);
+ d->m_numinput->tqsetSizePolicy(TQSizePolicy::MinimumExpanding, TQSizePolicy::Fixed);
d->m_numinput->setSuffix("%");
l->addWidget( d->m_numinput );
- d->m_slider = new KisPopupSlider(0, 100, 10, val, QSlider::Horizontal, this);
- d->m_slider->setFrameStyle(QFrame::Panel|QFrame::Raised);
+ d->m_slider = new KisPopupSlider(0, 100, 10, val, TQSlider::Horizontal, this);
+ d->m_slider->setFrameStyle(TQFrame::Panel|TQFrame::Raised);
- d->m_arrow = new KArrowButton(this, Qt::DownArrow);
+ d->m_arrow = new KArrowButton(this, TQt::DownArrow);
d->m_arrow->setPopup(d->m_slider);
d->m_arrow->setMaximumHeight( fontMetrics().height() + 4);
d->m_arrow->setEnabled(true); // Why is the arrow still gray?
@@ -98,14 +98,14 @@ void KisIntSpinbox::init(int val)
d->m_prevValue = val;
setValue(val);
setFocusProxy(d->m_numinput);
- layout();
+ tqlayout();
- connect(d->m_numinput, SIGNAL(valueChanged(int)), SLOT(spinboxValueChanged(int)));
- connect(d->m_slider, SIGNAL(valueChanged(int)), SLOT(sliderValueChanged(int)));
- connect(d->m_slider, SIGNAL(aboutToShow()), SLOT(slotAboutToShow()));
- connect(d->m_slider, SIGNAL(aboutToHide()), SLOT(slotAboutToHide()));
+ connect(d->m_numinput, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(spinboxValueChanged(int)));
+ connect(d->m_slider, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(sliderValueChanged(int)));
+ connect(d->m_slider, TQT_SIGNAL(aboutToShow()), TQT_SLOT(slotAboutToShow()));
+ connect(d->m_slider, TQT_SIGNAL(aboutToHide()), TQT_SLOT(slotAboutToHide()));
- connect(&(d->m_timer), SIGNAL(timeout()), this, SLOT(slotTimeout()));
+ connect(&(d->m_timer), TQT_SIGNAL(timeout()), this, TQT_SLOT(slotTimeout()));
}
void KisIntSpinbox::spinboxValueChanged(int val)
@@ -128,7 +128,7 @@ void KisIntSpinbox::setRange(int lower, int upper, int /*step*/)
lower = kMin(upper, lower);
d->m_slider->setRange(lower, upper);
- layout();
+ tqlayout();
}
void KisIntSpinbox::setMinValue(int min)
@@ -172,7 +172,7 @@ int KisIntSpinbox::value() const
return d->m_numinput->value(); // From the numinput: that one isn't in steps of ten
}
-void KisIntSpinbox::setLabel(const QString & /*label*/)
+void KisIntSpinbox::setLabel(const TQString & /*label*/)
{
}