summaryrefslogtreecommitdiffstats
path: root/examples/animation/stickman/graphicsview.cpp
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eblomfel@trolltech.com>2009-07-21 10:58:07 (GMT)
committerEskil Abrahamsen Blomfeldt <eblomfel@trolltech.com>2009-07-21 10:59:20 (GMT)
commit4b4e4ecf808b036e906c3bf22ce97b56808bb20e (patch)
treef72ff15a2703b5bb767d34788d19a521073e9c82 /examples/animation/stickman/graphicsview.cpp
parentffd978a76d91aaef92a36c465325256633f2fa97 (diff)
downloadQt-4b4e4ecf808b036e906c3bf22ce97b56808bb20e.zip
Qt-4b4e4ecf808b036e906c3bf22ce97b56808bb20e.tar.gz
Qt-4b4e4ecf808b036e906c3bf22ce97b56808bb20e.tar.bz2
Remove Stickman editor
The editor was a just a detail to make the animations and shouldn't be included in the example.
Diffstat (limited to 'examples/animation/stickman/graphicsview.cpp')
-rw-r--r--examples/animation/stickman/graphicsview.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/examples/animation/stickman/graphicsview.cpp b/examples/animation/stickman/graphicsview.cpp
index 760c31b..89f2430 100644
--- a/examples/animation/stickman/graphicsview.cpp
+++ b/examples/animation/stickman/graphicsview.cpp
@@ -40,7 +40,6 @@
****************************************************************************/
#include "graphicsview.h"
-#include "editor/mainwindow.h"
#include "stickman.h"
#include <QtGui/QKeyEvent>
@@ -53,28 +52,6 @@ void GraphicsView::keyPressEvent(QKeyEvent *e)
{
if (e->key() == Qt::Key_Escape)
close();
-
-#if 0
- if (e->key() == Qt::Key_F1) {
- if (m_editor == 0) {
- QGraphicsScene *scene = new QGraphicsScene;
- StickMan *stickMan = new StickMan;
- stickMan->setDrawSticks(true);
- scene->addItem(stickMan);
-
- QGraphicsView *view = new QGraphicsView;
- view->setBackgroundBrush(Qt::black);
- view->setRenderHints(QPainter::Antialiasing);
- view->setScene(scene);
-
- m_editor = new MainWindow(stickMan);
- m_editor->setCentralWidget(view);
- }
-
- m_editor->showMaximized();
- }
-#endif
-
emit keyPressed(Qt::Key(e->key()));
}