summaryrefslogtreecommitdiffstats
path: root/kpoker/playerbox.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/playerbox.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/playerbox.cpp')
-rw-r--r--kpoker/playerbox.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/kpoker/playerbox.cpp b/kpoker/playerbox.cpp
index cdfb216c..4927fd7c 100644
--- a/kpoker/playerbox.cpp
+++ b/kpoker/playerbox.cpp
@@ -15,10 +15,10 @@
*/
-#include <qtooltip.h>
-#include <qlabel.h>
-#include <qlayout.h>
-#include <qhbox.h>
+#include <tqtooltip.h>
+#include <tqlabel.h>
+#include <tqlayout.h>
+#include <tqhbox.h>
#include <kglobal.h>
#include <klocale.h>
@@ -30,25 +30,25 @@
#include "kpaint.h"
-PlayerBox::PlayerBox(bool playerOne, QWidget* parent, const char* name)
- : QGroupBox(parent, name)
+PlayerBox::PlayerBox(bool playerOne, TQWidget* parent, const char* name)
+ : TQGroupBox(parent, name)
{
- QHBoxLayout* l = new QHBoxLayout(this, PLAYERBOX_BORDERS,
+ TQHBoxLayout* l = new TQHBoxLayout(this, PLAYERBOX_BORDERS,
PLAYERBOX_HDISTANCEOFWIDGETS);
// The card and "held" label arrays.
m_cardWidgets = new CardWidget *[PokerHandSize];
- m_heldLabels = new QLabel *[PokerHandSize];
+ m_heldLabels = new TQLabel *[PokerHandSize];
- QFont myFixedFont;
+ TQFont myFixedFont;
myFixedFont.setPointSize(12);
// Generate the 5 cards
for (int i = 0; i < PokerHandSize; i++) {
- QVBoxLayout* vl = new QVBoxLayout(0);
+ TQVBoxLayout* vl = new TQVBoxLayout(0);
l->addLayout(vl, 0);
- QHBox* cardBox = new QHBox(this);
+ TQHBox* cardBox = new TQHBox(this);
vl->addWidget(cardBox, 0);
cardBox->setFrameStyle(Box | Sunken);
m_cardWidgets[i] = new CardWidget(cardBox);
@@ -56,14 +56,14 @@ PlayerBox::PlayerBox(bool playerOne, QWidget* parent, const char* name)
// Only add the "held" labels if this is the first player (the human one).
if (playerOne) {
- QHBox* b = new QHBox(this);
- m_heldLabels[i] = new QLabel(b);
+ TQHBox* b = new TQHBox(this);
+ m_heldLabels[i] = new TQLabel(b);
m_heldLabels[i]->setText(i18n("Held"));
b->setFrameStyle(Box | Sunken);
b->setFixedSize(b->sizeHint());
m_cardWidgets[i]->heldLabel = m_heldLabels[i];
- QHBoxLayout* heldLayout = new QHBoxLayout(0);
+ TQHBoxLayout* heldLayout = new TQHBoxLayout(0);
heldLayout->addWidget(b, 0, AlignCenter);
vl->insertLayout(0, heldLayout, 0);
vl->insertStretch(0, 1);
@@ -73,24 +73,24 @@ PlayerBox::PlayerBox(bool playerOne, QWidget* parent, const char* name)
// Add the cash and bet labels.
{
- QVBoxLayout* vl = new QVBoxLayout;
+ TQVBoxLayout* vl = new QVBoxLayout;
l->addLayout(vl);
vl->addStretch();
- m_cashLabel = new QLabel(this);
- m_cashLabel->setFrameStyle(QFrame::WinPanel | QFrame::Sunken);
+ m_cashLabel = new TQLabel(this);
+ m_cashLabel->setFrameStyle(TQFrame::WinPanel | TQFrame::Sunken);
m_cashLabel->setFont(myFixedFont);
vl->addWidget(m_cashLabel, 0, AlignHCenter);
vl->addStretch();
- m_betLabel = new QLabel(this);
- m_betLabel->setFrameStyle(QFrame::WinPanel | QFrame::Sunken);
+ m_betLabel = new TQLabel(this);
+ m_betLabel->setFrameStyle(TQFrame::WinPanel | TQFrame::Sunken);
m_betLabel->setFont(myFixedFont);
vl->addWidget(m_betLabel, 0, AlignHCenter);
vl->addStretch();
}
- QToolTip::add(m_cashLabel,
+ TQToolTip::add(m_cashLabel,
i18n("Money of %1").arg("Player"));//change via showName()
// Assume that we have a multiplayer game.
@@ -109,9 +109,9 @@ PlayerBox::~PlayerBox()
-void PlayerBox::resizeEvent(QResizeEvent* e)
+void PlayerBox::resizeEvent(TQResizeEvent* e)
{
- QGroupBox::resizeEvent(e);
+ TQGroupBox::resizeEvent(e);
showCash();
showName();
@@ -144,8 +144,8 @@ void PlayerBox::showCash()
void PlayerBox::showName()
{
setTitle(m_player->getName());
- QToolTip::remove(m_cashLabel);
- QToolTip::add(m_cashLabel, i18n("Money of %1").arg(m_player->getName()));
+ TQToolTip::remove(m_cashLabel);
+ TQToolTip::add(m_cashLabel, i18n("Money of %1").arg(m_player->getName()));
}
@@ -176,8 +176,8 @@ void PlayerBox::paintCard(int nr)
void PlayerBox::activateToggleHeld()
{
for (int i = 0; i < PokerHandSize; i++) {
- connect(m_cardWidgets[i], SIGNAL(pClicked(CardWidget*)),
- this, SLOT(cardClicked(CardWidget*)));
+ connect(m_cardWidgets[i], TQT_SIGNAL(pClicked(CardWidget*)),
+ this, TQT_SLOT(cardClicked(CardWidget*)));
}
}