summaryrefslogtreecommitdiffstats
path: root/kgamma/kcmkgamma/gammactrl.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-08-02 19:23:46 +0000
commiteba47f8f0637f451e21348187591e1f1fd58ac74 (patch)
tree448f10b95c656604acc331a3236c1e59bde5c1ad /kgamma/kcmkgamma/gammactrl.cpp
parentc7e8736c69373f48b0401319757c742e8607431a (diff)
downloadtdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.tar.gz
tdegraphics-eba47f8f0637f451e21348187591e1f1fd58ac74.zip
TQt conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kgamma/kcmkgamma/gammactrl.cpp')
-rw-r--r--kgamma/kcmkgamma/gammactrl.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/kgamma/kcmkgamma/gammactrl.cpp b/kgamma/kcmkgamma/gammactrl.cpp
index 2052fd34..3871a18d 100644
--- a/kgamma/kcmkgamma/gammactrl.cpp
+++ b/kgamma/kcmkgamma/gammactrl.cpp
@@ -15,9 +15,9 @@
* *
***************************************************************************/
-#include <qlabel.h>
-#include <qlineedit.h>
-#include <qstring.h>
+#include <tqlabel.h>
+#include <tqlineedit.h>
+#include <tqstring.h>
#include <kdialog.h>
@@ -26,9 +26,9 @@
#include "displaynumber.h"
#include "gammactrl.moc"
-GammaCtrl::GammaCtrl(QWidget *parent, XVidExtWrap *xvid, int channel, \
- const QString& mingamma, const QString& maxgamma, const QString& setgamma, \
- const char *name) : QHBox(parent, name)
+GammaCtrl::GammaCtrl(TQWidget *parent, XVidExtWrap *xvid, int channel, \
+ const TQString& mingamma, const TQString& maxgamma, const TQString& setgamma, \
+ const char *name) : TQHBox(parent, name)
{
int maxslider = (int)( ( maxgamma.toDouble() - mingamma.toDouble() \
+ 0.0005 ) * 20 );
@@ -47,14 +47,14 @@ GammaCtrl::GammaCtrl(QWidget *parent, XVidExtWrap *xvid, int channel, \
setSpacing(KDialog::spacingHint());
- slider = new QSlider(Horizontal, this);
+ slider = new TQSlider(Horizontal, this);
slider->setFixedHeight(24);
- slider->setTickmarks(QSlider::Below);
+ slider->setTickmarks(TQSlider::Below);
slider->setRange(0, maxslider);
slider->setTickInterval(2);
slider->setValue(setslider);
- connect(slider, SIGNAL(valueChanged(int)), SLOT(setGamma(int)));
- connect(slider, SIGNAL(sliderPressed()), SLOT(pressed()));
+ connect(slider, TQT_SIGNAL(valueChanged(int)), TQT_SLOT(setGamma(int)));
+ connect(slider, TQT_SIGNAL(sliderPressed()), TQT_SLOT(pressed()));
textfield = new DisplayNumber(this, 4, 2);
textfield->setText(setgamma);
@@ -66,7 +66,7 @@ GammaCtrl::~GammaCtrl()
}
/** set gamma, slider and textfield */
-void GammaCtrl::setGamma(const QString& gamma){
+void GammaCtrl::setGamma(const TQString& gamma){
int sliderpos;
sliderpos = (int)( ( gamma.toDouble() - mgamma.toDouble() + 0.0005 ) * 20 );
@@ -81,7 +81,7 @@ void GammaCtrl::setGamma(const QString& gamma){
}
/** set slider and textfield */
-void GammaCtrl::setControl(const QString& gamma){
+void GammaCtrl::setControl(const TQString& gamma){
int sliderpos;
sliderpos = (int)( ( gamma.toDouble() - mgamma.toDouble() + 0.0005 ) * 20 );
@@ -89,8 +89,8 @@ void GammaCtrl::setControl(const QString& gamma){
}
/** Return the current gamma value with precision prec */
-QString GammaCtrl::gamma(int prec){
- QString gammatext;
+TQString GammaCtrl::gamma(int prec){
+ TQString gammatext;
gammatext.setNum(xv->getGamma(gchannel) + 0.0005, 'f', prec);
return(gammatext);