summaryrefslogtreecommitdiffstats
path: root/kpoker/betbox.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:42:31 +0000
commit576eb4299a00bc053db35414406f46372a0f70f2 (patch)
tree4c030922d533821db464af566188e7d40cc8848c /kpoker/betbox.cpp
parent0718336b6017d1a4fc1d626544180a5a2a29ddec (diff)
downloadtdegames-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 'kpoker/betbox.cpp')
-rw-r--r--kpoker/betbox.cpp46
1 files changed, 23 insertions, 23 deletions
diff --git a/kpoker/betbox.cpp b/kpoker/betbox.cpp
index e152573f..91fcab8b 100644
--- a/kpoker/betbox.cpp
+++ b/kpoker/betbox.cpp
@@ -15,8 +15,8 @@
*/
-#include <qpushbutton.h>
-#include <qlayout.h>
+#include <tqpushbutton.h>
+#include <tqlayout.h>
#include <kglobal.h>
#include <klocale.h>
@@ -24,42 +24,42 @@
#include "betbox.h"
-BetBox::BetBox(QWidget* parent, const char* name)
- : QGroupBox(parent, name)
+BetBox::BetBox(TQWidget* parent, const char* name)
+ : TQGroupBox(parent, name)
{
- QVBoxLayout* topLayout = new QVBoxLayout(this, 1, 1);
- QGridLayout* g = new QGridLayout(topLayout, 2, 2, 1);
- QHBoxLayout* l = new QHBoxLayout(topLayout, 1);
+ TQVBoxLayout* topLayout = new TQVBoxLayout(this, 1, 1);
+ TQGridLayout* g = new TQGridLayout(topLayout, 2, 2, 1);
+ TQHBoxLayout* l = new TQHBoxLayout(topLayout, 1);
- bet5Up = new QPushButton(this);
+ bet5Up = new TQPushButton(this);
g->addWidget(bet5Up, 0, 0);
- bet10Up = new QPushButton(this);
+ bet10Up = new TQPushButton(this);
g->addWidget(bet10Up, 0, 1);
- bet5Down = new QPushButton(this);
+ bet5Down = new TQPushButton(this);
g->addWidget(bet5Down, 1, 0);
- bet10Down = new QPushButton(this);
+ bet10Down = new TQPushButton(this);
g->addWidget(bet10Down, 1, 1);
- adjustBet = new QPushButton(this);
+ adjustBet = new TQPushButton(this);
l->addWidget(adjustBet, 0);
l->addStretch(1);
- foldButton = new QPushButton(this);
+ foldButton = new TQPushButton(this);
l->addWidget(foldButton, 0);
- bet5Up->setText(QString("+%1").arg(KGlobal::locale()->formatMoney(5)));
- bet10Up->setText(QString("+%1").arg(KGlobal::locale()->formatMoney(10)));
- bet5Down->setText(QString("-%1").arg(KGlobal::locale()->formatMoney(5)));
- bet10Down->setText(QString("-%1").arg(KGlobal::locale()->formatMoney(10)));
+ bet5Up->setText(TQString("+%1").arg(KGlobal::locale()->formatMoney(5)));
+ bet10Up->setText(TQString("+%1").arg(KGlobal::locale()->formatMoney(10)));
+ bet5Down->setText(TQString("-%1").arg(KGlobal::locale()->formatMoney(5)));
+ bet10Down->setText(TQString("-%1").arg(KGlobal::locale()->formatMoney(10)));
adjustBet->setText(i18n("Adjust Bet"));
foldButton->setText(i18n("Fold"));
//connects
- connect(bet5Up, SIGNAL(clicked()), SLOT(bet5UpClicked()));
- connect(bet10Up, SIGNAL(clicked()), SLOT(bet10UpClicked()));
- connect(bet5Down, SIGNAL(clicked()), SLOT(bet5DownClicked()));
- connect(bet10Down, SIGNAL(clicked()), SLOT(bet10DownClicked()));
- connect(foldButton, SIGNAL(clicked()), SLOT(foldClicked()));
- connect(adjustBet, SIGNAL(clicked()), SLOT(adjustBetClicked()));
+ connect(bet5Up, TQT_SIGNAL(clicked()), TQT_SLOT(bet5UpClicked()));
+ connect(bet10Up, TQT_SIGNAL(clicked()), TQT_SLOT(bet10UpClicked()));
+ connect(bet5Down, TQT_SIGNAL(clicked()), TQT_SLOT(bet5DownClicked()));
+ connect(bet10Down, TQT_SIGNAL(clicked()), TQT_SLOT(bet10DownClicked()));
+ connect(foldButton, TQT_SIGNAL(clicked()), TQT_SLOT(foldClicked()));
+ connect(adjustBet, TQT_SIGNAL(clicked()), TQT_SLOT(adjustBetClicked()));
stopRaise();
}