kapman
gameview.cpp
Go to the documentation of this file.
void setFocusPolicy(Qt::FocusPolicy policy)
QRectF sceneRect() const
void setFrameStyle(int style)
QGraphicsScene * scene() const
void keyPressed(QKeyEvent *p_event)
Emitted on key press event for the Game instance.
void resizeEvent(QResizeEvent *p_event)
Resizes the items when the view is resized.
Definition: gameview.cpp:32
This class manages the game main loop : it regularly checks the key press events, computes the charac...
Definition: game.h:35
void keyPressEvent(QKeyEvent *p_event)
Manages the player actions by hanlding the key press events.
Definition: gameview.cpp:43
This class contains all the Game elements to be drawn on the screen by the GameView instance...
Definition: gamescene.h:38
bool connect(const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
void fitInView(const QRectF &rect, Qt::AspectRatioMode aspectRatioMode)
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:18:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.