Diffstat (limited to 'noncore/games/tetrix/qtetrixb.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/games/tetrix/qtetrixb.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/noncore/games/tetrix/qtetrixb.cpp b/noncore/games/tetrix/qtetrixb.cpp index 521f171..3c179df 100644 --- a/noncore/games/tetrix/qtetrixb.cpp +++ b/noncore/games/tetrix/qtetrixb.cpp @@ -1,50 +1,48 @@ /********************************************************************** ** Copyright (C) 2000 Trolltech AS. All rights reserved. ** ** This file is part of Qtopia Environment. ** ** This file may be distributed and/or modified under the terms of the ** GNU General Public License version 2 as published by the Free Software ** Foundation and appearing in the file LICENSE.GPL included in the ** packaging of this file. ** ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. ** ** See http://www.trolltech.com/gpl/ for GPL licensing information. ** ** Contact info@trolltech.com if any conditions of this licensing are ** not clear to you. ** **********************************************************************/ #include "qtetrixb.h" #include "qtetrix.h" #include <qtimer.h> -#include <qkeycode.h> -#include <qpainter.h> const int waitAfterLineTime = 500; QTetrixBoard::QTetrixBoard( QWidget *p, const char *name ) : QFrame( p, name ) { setFrameStyle( QFrame::Panel | QFrame::Sunken ); paint = 0; timer = new QTimer(this); connect( timer, SIGNAL(timeout()), SLOT(timeout()) ); colors[0].setRgb(200,100,100); colors[1].setRgb(100,200,100); colors[2].setRgb(100,100,200); colors[3].setRgb(200,200,100); colors[4].setRgb(200,100,200); colors[5].setRgb(100,200,200); colors[6].setRgb(218,170, 0); xOffset = -1; // -1 until a resizeEvent is received. blockWidth = 20; yOffset = 30; blockHeight = 20; noGame = TRUE; |