summaryrefslogtreecommitdiffstats
path: root/kpoker/playerbox.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kpoker/playerbox.cpp')
-rw-r--r--kpoker/playerbox.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/kpoker/playerbox.cpp b/kpoker/playerbox.cpp
index 66ffd5a7..53123fbc 100644
--- a/kpoker/playerbox.cpp
+++ b/kpoker/playerbox.cpp
@@ -30,8 +30,8 @@
#include "kpaint.h"
-PlayerBox::PlayerBox(bool playerOne, TQWidget* parent, const char* name)
- : TQGroupBox(parent, name)
+PlayerBox::PlayerBox(bool playerOne, TQWidget* tqparent, const char* name)
+ : TQGroupBox(tqparent, name)
{
TQHBoxLayout* l = new TQHBoxLayout(this, PLAYERBOX_BORDERS,
PLAYERBOX_HDISTANCEOFWIDGETS);
@@ -52,7 +52,7 @@ PlayerBox::PlayerBox(bool playerOne, TQWidget* parent, const char* name)
vl->addWidget(cardBox, 0);
cardBox->setFrameStyle(Box | Sunken);
m_cardWidgets[i] = new CardWidget(cardBox);
- cardBox->setFixedSize(cardBox->sizeHint());
+ cardBox->setFixedSize(cardBox->tqsizeHint());
// Only add the "held" labels if this is the first player (the human one).
if (playerOne) {
@@ -60,7 +60,7 @@ PlayerBox::PlayerBox(bool playerOne, TQWidget* parent, const char* name)
m_heldLabels[i] = new TQLabel(b);
m_heldLabels[i]->setText(i18n("Held"));
b->setFrameStyle(Box | Sunken);
- b->setFixedSize(b->sizeHint());
+ b->setFixedSize(b->tqsizeHint());
m_cardWidgets[i]->heldLabel = m_heldLabels[i];
TQHBoxLayout* heldLayout = new TQHBoxLayout(0);
@@ -91,7 +91,7 @@ PlayerBox::PlayerBox(bool playerOne, TQWidget* parent, const char* name)
}
TQToolTip::add(m_cashLabel,
- i18n("Money of %1").arg("Player"));//change via showName()
+ i18n("Money of %1").tqarg("Player"));//change via showName()
// Assume that we have a multiplayer game.
m_singlePlayer = false;
@@ -122,7 +122,7 @@ void PlayerBox::showCash()
{
// Show the amount of cash the player has.
m_cashLabel->setText(i18n("Cash: %1")
- .arg(KGlobal::locale()->formatMoney(m_player->getCash())));
+ .tqarg(KGlobal::locale()->formatMoney(m_player->getCash())));
// Show how much we have bet during this round.
if (m_player->out())
@@ -130,10 +130,10 @@ void PlayerBox::showCash()
else {
if (m_singlePlayer)
m_betLabel->setText(i18n("Cash per round: %1")
- .arg(KGlobal::locale()->formatMoney(m_cashPerRound)));
+ .tqarg(KGlobal::locale()->formatMoney(m_cashPerRound)));
else
m_betLabel->setText(i18n("Bet: %1")
- .arg(KGlobal::locale()-> formatMoney(m_player->getCurrentBet())));
+ .tqarg(KGlobal::locale()-> formatMoney(m_player->getCurrentBet())));
}
}
@@ -145,7 +145,7 @@ void PlayerBox::showName()
{
setTitle(m_player->getName());
TQToolTip::remove(m_cashLabel);
- TQToolTip::add(m_cashLabel, i18n("Money of %1").arg(m_player->getName()));
+ TQToolTip::add(m_cashLabel, i18n("Money of %1").tqarg(m_player->getName()));
}
@@ -252,10 +252,10 @@ void PlayerBox::cardClicked(int no)
}
-void PlayerBox::repaintCard()
+void PlayerBox::tqrepaintCard()
{
for (int i = 0; i < PokerHandSize; i++)
- m_cardWidgets[i]->repaintDeck();
+ m_cardWidgets[i]->tqrepaintDeck();
}