summaryrefslogtreecommitdiffstats
path: root/atlantik/libatlantikui/token.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-11 04:58:26 +0000
commit838baf3f99ec5ab81b063eb5449a3381d860f377 (patch)
treedd31abcfde08ca92e4623b8f50b3d762a87c997a /atlantik/libatlantikui/token.cpp
parent2bf598bafa22fac4126fc8842df6b0119aadc0e9 (diff)
downloadtdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.tar.gz
tdegames-838baf3f99ec5ab81b063eb5449a3381d860f377.zip
TQt4 port kdegames
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdegames@1236074 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'atlantik/libatlantikui/token.cpp')
-rw-r--r--atlantik/libatlantikui/token.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/atlantik/libatlantikui/token.cpp b/atlantik/libatlantikui/token.cpp
index c77aeadb..0a4f5193 100644
--- a/atlantik/libatlantikui/token.cpp
+++ b/atlantik/libatlantikui/token.cpp
@@ -33,11 +33,11 @@
#define TOKEN_ICONSIZE 32
-Token::Token(Player *player, AtlantikBoard *parent, const char *name) : TQWidget(parent, name)
+Token::Token(Player *player, AtlantikBoard *tqparent, const char *name) : TQWidget(tqparent, name)
{
setBackgroundMode(NoBackground); // avoid flickering
- m_parentBoard = parent;
+ m_parentBoard = tqparent;
m_player = player;
connect(m_player, TQT_SIGNAL(changed(Player *)), this, TQT_SLOT(playerChanged()));
@@ -127,24 +127,24 @@ void Token::paintEvent(TQPaintEvent *)
qpixmap = new TQPixmap(width(), height());
TQPainter painter;
- painter.begin(qpixmap, this);
+ painter.tqbegin(TQT_TQPAINTDEVICE(qpixmap), this);
if (m_image)
{
- painter.setPen(Qt::black);
- painter.setBrush(Qt::white);
+ painter.setPen(TQt::black);
+ painter.setBrush(TQt::white);
painter.drawRect(0, 0, TOKEN_ICONSIZE, TOKEN_ICONSIZE);
painter.drawPixmap(0, 0, *m_image);
}
- painter.setPen(Qt::black);
- painter.setBrush(Qt::black);
+ painter.setPen(TQt::black);
+ painter.setBrush(TQt::black);
painter.drawRect(0, TOKEN_ICONSIZE, width(), KGlobalSettings::generalFont().pointSize());
- painter.setPen(Qt::white);
+ painter.setPen(TQt::white);
painter.setFont(TQFont(KGlobalSettings::generalFont().family(), KGlobalSettings::generalFont().pointSize(), TQFont::DemiBold));
- painter.drawText(1, height()-1, (m_player ? m_player->name() : TQString::null));
+ painter.drawText(1, height()-1, (m_player ? m_player->name() : TQString()));
b_recreate = false;
}