Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Games
KGoldrunner
Commits
c1b97822
Commit
c1b97822
authored
Jun 05, 2012
by
Ian Wadham
Browse files
Prevent a crash in the kgoldrunner executable (KGoldrunner class).
svn path=/branches/work/kgoldrunner-qgv/; revision=1298375
parent
251e00e0
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/kgoldrunner.cpp
View file @
c1b97822
...
...
@@ -123,7 +123,9 @@ KGoldrunner::KGoldrunner()
// Tell the KMainWindow that the KGrCanvas object is the main widget.
setCentralWidget
(
view
);
// m_renderer = new KGrRenderer (view); // IDW test.
m_scene
=
new
QGraphicsScene
(
this
);
//IDW test.
m_renderer
=
new
KGrRenderer
(
m_scene
);
// IDW test.
// Set up our actions (menu, toolbar and keystrokes) ...
setupActions
();
...
...
src/kgoldrunner.h
View file @
c1b97822
...
...
@@ -35,6 +35,8 @@ const int L_LEVEL = 15;
#include
<KXmlGuiWindow>
#include
<QGraphicsScene>
// IDW test.
class
QSignalMapper
;
class
KAction
;
class
KToggleAction
;
...
...
@@ -77,6 +79,8 @@ protected:
void
keyReleaseEvent
(
QKeyEvent
*
event
);
private:
QGraphicsScene
*
m_scene
;
// IDW test.
bool
identifyMoveAction
(
QKeyEvent
*
event
,
bool
pressed
);
protected:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment