summaryrefslogtreecommitdiffstats
path: root/kblackbox/kbbgfx.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kblackbox/kbbgfx.cpp')
-rw-r--r--kblackbox/kbbgfx.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kblackbox/kbbgfx.cpp b/kblackbox/kbbgfx.cpp
index b38a2c9e..26d47952 100644
--- a/kblackbox/kbbgfx.cpp
+++ b/kblackbox/kbbgfx.cpp
@@ -22,13 +22,13 @@
Constructs a KBBGraphic widget.
*/
-KBBGraphic::KBBGraphic( TQPixmap **p, TQWidget* parent, const char* name )
- : TQWidget( parent, name )
+KBBGraphic::KBBGraphic( TQPixmap **p, TQWidget* tqparent, const char* name )
+ : TQWidget( tqparent, name )
{
int i;
curRow = curCol = 0;
- setFocusPolicy( NoFocus );
+ setFocusPolicy( TQ_NoFocus );
setBackgroundColor( gray );
setCellWidth( CELLW ); // set width of cell in pixels
setCellHeight( CELLH ); // set height of cell in pixels
@@ -137,7 +137,7 @@ int KBBGraphic::width() { return cellW * numRows; }
int KBBGraphic::height() { return cellH * numCols; }
int KBBGraphic::wHint() const { return minW; }
int KBBGraphic::hHint() const { return minH; }
-TQSize KBBGraphic::sizeHint() const { return TQSize(wHint(), hHint()); }
+TQSize KBBGraphic::tqsizeHint() const { return TQSize(wHint(), hHint()); }
/*
Returns a pointer to graphicBoard
@@ -342,7 +342,7 @@ void KBBGraphic::mousePressEvent( TQMouseEvent* e )
/*
* Middle click finishes the game.
*/
- if (e->button() == MidButton) {
+ if (e->button() == Qt::MidButton) {
emit endMouseClicked();
return;
}
@@ -413,7 +413,7 @@ void KBBGraphic::slotInput()
if ( !inputAccepted ) {
return;
}
- emit inputAt( curCol, curRow, LeftButton );
+ emit inputAt( curCol, curRow, Qt::LeftButton );
// updateElement( curCol, curRow );
}
@@ -434,7 +434,7 @@ void KBBGraphic::moveSelection(int drow, int dcol)
void KBBGraphic::focusInEvent( TQFocusEvent* )
{
- repaint( FALSE );
+ tqrepaint( FALSE );
}
@@ -444,7 +444,7 @@ void KBBGraphic::focusInEvent( TQFocusEvent* )
void KBBGraphic::focusOutEvent( TQFocusEvent* )
{
- repaint( FALSE );
+ tqrepaint( FALSE );
}
/*
@@ -454,8 +454,8 @@ void KBBGraphic::focusOutEvent( TQFocusEvent* )
void KBBGraphic::setInputAccepted( bool b )
{
inputAccepted = b;
- if (b) setFocusPolicy( StrongFocus );
- else setFocusPolicy( NoFocus );
+ if (b) setFocusPolicy( TQ_StrongFocus );
+ else setFocusPolicy( TQ_NoFocus );
}
/*