diff options
Diffstat (limited to 'kblackbox/kbbgfx.cpp')
-rw-r--r-- | kblackbox/kbbgfx.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/kblackbox/kbbgfx.cpp b/kblackbox/kbbgfx.cpp index 0becd126..b83aa292 100644 --- a/kblackbox/kbbgfx.cpp +++ b/kblackbox/kbbgfx.cpp @@ -28,11 +28,11 @@ KBBGraphic::KBBGraphic( TQPixmap **p, TQWidget* parent, const char* name ) int i; curRow = curCol = 0; - setFocusPolicy( TQ_NoFocus ); + setFocusPolicy( TQWidget::NoFocus ); setBackgroundColor( gray ); setCellWidth( CELLW ); // set width of cell in pixels setCellHeight( CELLH ); // set height of cell in pixels - setMouseTracking( FALSE ); + setMouseTracking( false ); pix = p; if (pix == NULL) pixScaled = NULL; @@ -342,7 +342,7 @@ void KBBGraphic::mousePressEvent( TQMouseEvent* e ) /* * Middle click finishes the game. */ - if (e->button() == Qt::MidButton) { + if (e->button() == TQt::MidButton) { emit endMouseClicked(); return; } @@ -413,7 +413,7 @@ void KBBGraphic::slotInput() if ( !inputAccepted ) { return; } - emit inputAt( curCol, curRow, Qt::LeftButton ); + emit inputAt( curCol, curRow, TQt::LeftButton ); // updateElement( curCol, curRow ); } @@ -434,7 +434,7 @@ void KBBGraphic::moveSelection(int drow, int dcol) void KBBGraphic::focusInEvent( TQFocusEvent* ) { - repaint( FALSE ); + repaint( false ); } @@ -444,7 +444,7 @@ void KBBGraphic::focusInEvent( TQFocusEvent* ) void KBBGraphic::focusOutEvent( TQFocusEvent* ) { - repaint( FALSE ); + repaint( false ); } /* @@ -454,8 +454,8 @@ void KBBGraphic::focusOutEvent( TQFocusEvent* ) void KBBGraphic::setInputAccepted( bool b ) { inputAccepted = b; - if (b) setFocusPolicy( TQ_StrongFocus ); - else setFocusPolicy( TQ_NoFocus ); + if (b) setFocusPolicy( TQWidget::StrongFocus ); + else setFocusPolicy( TQWidget::NoFocus ); } /* |