1
/***************************************************************************
2
* KBlocks, a falling blocks game for KDE *
3
* Copyright (C) 2007 Mauricio Piacentini <mauricio@tabuleiro.com> *
5
* This program is free software; you can redistribute it and/or modify *
6
* it under the terms of the GNU General Public License as published by *
7
* the Free Software Foundation; either version 2 of the License, or *
8
* (at your option) any later version. *
9
***************************************************************************/
14
#include <QGraphicsView>
18
class KBlocksView : public QGraphicsView
22
KBlocksView (QWidget * parent = 0 );
24
QObject * getSceneObject() { return (QObject *) m_scene; }
28
void pauseGame(bool pressed);
29
void settingsChanged();
30
void setSoundsEnabled(bool enabled);
39
void focusInEvent ( QFocusEvent * event );
40
void focusOutEvent ( QFocusEvent * event );
43
KBlocksScene * m_scene;
44
void resizeEvent(QResizeEvent* event);