From eba47f8f0637f451e21348187591e1f1fd58ac74 Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 2 Aug 2010 19:23:46 +0000 Subject: TQt conversion git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegraphics@1158446 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kgamma/kcmkgamma/gammactrl.cpp | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'kgamma/kcmkgamma/gammactrl.cpp') 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 -#include -#include +#include +#include +#include #include @@ -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); -- cgit v1.2.1