diff options
Diffstat (limited to 'knights/board_2d.cpp')
-rw-r--r-- | knights/board_2d.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/knights/board_2d.cpp b/knights/board_2d.cpp index a0170a5..cf3afdc 100644 --- a/knights/board_2d.cpp +++ b/knights/board_2d.cpp @@ -237,7 +237,7 @@ void board_2d::redrawAll( void ) if( init ) return; - /* Set Qt::Orientation */ + /* Set Orientation */ orientation = myResource->OPTION_Board_Orientation; if( localArmy != WHITE ) orientation = !orientation; @@ -507,11 +507,11 @@ void board_2d::mouseReleaseEvent( TQMouseEvent *event ) lastMoveWasDrag = TRUE; } - if(event->button() == Qt::LeftButton) + if(event->button() == TQt::LeftButton) { emit leftClick( position( event->pos() ) ); } - if(event->button() == Qt::RightButton) + if(event->button() == TQt::RightButton) { emit rightClick( position( event->pos() ) ); } @@ -536,7 +536,7 @@ void board_2d::mouseMoveEvent( TQMouseEvent *event ) event->accept(); if( DragSprite == NULL ) { - if( event->state() & Qt::LeftButton ) + if( event->state() & TQt::LeftButton ) { if( abs( pressPoint.x() - event->pos().x() ) + abs( pressPoint.y() - event->pos().y() ) > 6 ) { @@ -565,7 +565,7 @@ void board_2d::mouseMoveEvent( TQMouseEvent *event ) else /* Not enough dragging */ return; - } // End ( event->state() & Qt::LeftButton ) + } // End ( event->state() & TQt::LeftButton ) else return; /* No dragging. Most events should end up here */ } |