diff options
Diffstat (limited to 'kenolaba/BoardWidget.cpp')
-rw-r--r-- | kenolaba/BoardWidget.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/kenolaba/BoardWidget.cpp b/kenolaba/BoardWidget.cpp index 456bb75c..40a61659 100644 --- a/kenolaba/BoardWidget.cpp +++ b/kenolaba/BoardWidget.cpp @@ -44,17 +44,17 @@ BoardWidget::BoardWidget(Board& b, TQWidget *parent, const char *name) #ifdef HAVE_KIR m_backRenderer = KIRManager::attach( this, "Background" ); - connect( m_backRenderer, TQT_SIGNAL(rendered()), - this, TQT_SLOT(drawBoard()) ); + connect( m_backRenderer, TQ_SIGNAL(rendered()), + this, TQ_SLOT(drawBoard()) ); #endif /* setup cursors */ #define createCursor(bitmap,name) \ static TQBitmap bitmap(bitmap##_width, bitmap##_height, \ - (unsigned char *) bitmap##_bits, TRUE); \ + (unsigned char *) bitmap##_bits, true); \ static TQBitmap bitmap##Mask(bitmap##Mask_width, bitmap##Mask_height, \ - (unsigned char *) bitmap##Mask_bits, TRUE); \ + (unsigned char *) bitmap##Mask_bits, true); \ name = new TQCursor(bitmap, bitmap##Mask, bitmap##_x_hot, bitmap##_y_hot); createCursor(Arrow1, arrow[1]); @@ -164,7 +164,7 @@ void BoardWidget::paintEvent(TQPaintEvent *) { if (renderMode) { pm = boardPM; - BallWidget::paint(TQT_TQPAINTDEVICE(&pm)); + BallWidget::paint(&pm); } else draw(); @@ -834,7 +834,7 @@ void BoardWidget::mousePressEvent( TQMouseEvent* pEvent ) int pos = positionOf( pEvent->x(), pEvent->y() ); int f = fieldOf(pos); - if (pEvent->button() == Qt::RightButton) { + if (pEvent->button() == TQt::RightButton) { emit rightButtonPressed(f, pEvent->globalPos()); return; } @@ -846,9 +846,9 @@ void BoardWidget::mousePressEvent( TQMouseEvent* pEvent ) if (editMode) { - editColor = (pEvent->button() == Qt::MidButton) ? + editColor = (pEvent->button() == TQt::MidButton) ? Board::color2 : Board::color1; - int newColor = (pEvent->button() == Qt::MidButton) ? + int newColor = (pEvent->button() == TQt::MidButton) ? Board::color2bright : Board::color1bright; if (field[f] == Board::free) { @@ -877,7 +877,7 @@ void BoardWidget::mousePressEvent( TQMouseEvent* pEvent ) return; } - startValid = isValidStart(pos, (pEvent->button() == Qt::MidButton)); + startValid = isValidStart(pos, (pEvent->button() == TQt::MidButton)); kdDebug(12011) << "Start pos " << pos << " is valid: " << startValid << endl; // actMove.print(); @@ -918,7 +918,7 @@ void BoardWidget::mouseMoveEvent( TQMouseEvent* pEvent ) if (!startValid) { /* We haven't a valid move yet. Check if we are over a valid start */ - startValid = isValidStart(pos, (pEvent->button() == Qt::MidButton)); + startValid = isValidStart(pos, (pEvent->button() == TQt::MidButton)); kdDebug(12011) << "Start pos " << pos << " is valid: " << startValid << endl; // actMove.print(); |