diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:42:31 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:42:31 +0000 |
commit | 576eb4299a00bc053db35414406f46372a0f70f2 (patch) | |
tree | 4c030922d533821db464af566188e7d40cc8848c /kolf/objects/poolball/poolball.cpp | |
parent | 0718336b6017d1a4fc1d626544180a5a2a29ddec (diff) | |
download | tdegames-576eb4299a00bc053db35414406f46372a0f70f2.tar.gz tdegames-576eb4299a00bc053db35414406f46372a0f70f2.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1157643 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kolf/objects/poolball/poolball.cpp')
-rw-r--r-- | kolf/objects/poolball/poolball.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/kolf/objects/poolball/poolball.cpp b/kolf/objects/poolball/poolball.cpp index a5ca80ec..c2fe0718 100644 --- a/kolf/objects/poolball/poolball.cpp +++ b/kolf/objects/poolball/poolball.cpp @@ -1,9 +1,9 @@ -#include <qbrush.h> -#include <qcolor.h> -#include <qcanvas.h> -#include <qlabel.h> -#include <qlayout.h> -#include <qpainter.h> +#include <tqbrush.h> +#include <tqcolor.h> +#include <tqcanvas.h> +#include <tqlabel.h> +#include <tqlayout.h> +#include <tqpainter.h> #include <klocale.h> #include <klibloader.h> @@ -17,9 +17,9 @@ #include "poolball.h" K_EXPORT_COMPONENT_FACTORY(libkolfpoolball, PoolBallFactory) -QObject *PoolBallFactory::createObject (QObject *, const char *, const char *, const QStringList &) { return new PoolBallObj; } +TQObject *PoolBallFactory::createObject (TQObject *, const char *, const char *, const TQStringList &) { return new PoolBallObj; } -PoolBall::PoolBall(QCanvas *canvas) +PoolBall::PoolBall(TQCanvas *canvas) : Ball(canvas) { setBrush(black); @@ -33,7 +33,7 @@ void PoolBall::save(KConfig *cfg) void PoolBall::saveState(StateDB *db) { - db->setPoint(QPoint(x(), y())); + db->setPoint(TQPoint(x(), y())); } void PoolBall::load(KConfig *cfg) @@ -48,20 +48,20 @@ void PoolBall::loadState(StateDB *db) setState(Stopped); } -void PoolBall::draw(QPainter &p) +void PoolBall::draw(TQPainter &p) { // we should draw the number here Ball::draw(p); } -PoolBallConfig::PoolBallConfig(PoolBall *poolBall, QWidget *parent) +PoolBallConfig::PoolBallConfig(PoolBall *poolBall, TQWidget *parent) : Config(parent), m_poolBall(poolBall) { - QVBoxLayout *layout = new QVBoxLayout(this, marginHint(), spacingHint()); + TQVBoxLayout *layout = new TQVBoxLayout(this, marginHint(), spacingHint()); layout->addStretch(); - QLabel *num = new QLabel(i18n("Number:"), this); + TQLabel *num = new TQLabel(i18n("Number:"), this); layout->addWidget(num); KIntNumInput *slider = new KIntNumInput(m_poolBall->number(), this); slider->setRange(1, 15); @@ -69,7 +69,7 @@ PoolBallConfig::PoolBallConfig(PoolBall *poolBall, QWidget *parent) layout->addStretch(); - connect(slider, SIGNAL(valueChanged(int)), this, SLOT(numberChanged(int))); + connect(slider, TQT_SIGNAL(valueChanged(int)), this, TQT_SLOT(numberChanged(int))); } void PoolBallConfig::numberChanged(int newNumber) @@ -78,7 +78,7 @@ void PoolBallConfig::numberChanged(int newNumber) changed(); } -Config *PoolBall::config(QWidget *parent) +Config *PoolBall::config(TQWidget *parent) { return new PoolBallConfig(this, parent); } |