Commit c1b97822 authored by Ian Wadham's avatar Ian Wadham

Prevent a crash in the kgoldrunner executable (KGoldrunner class).

svn path=/branches/work/kgoldrunner-qgv/; revision=1298375
parent 251e00e0
......@@ -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();
......
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment