diff options
Diffstat (limited to 'atlantik/libatlantikui/token.cpp')
-rw-r--r-- | atlantik/libatlantikui/token.cpp | 18 |
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; } |