summaryrefslogtreecommitdiffstats
path: root/examples/statemachine/animation/stickman/graphicsview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/statemachine/animation/stickman/graphicsview.cpp')
-rw-r--r--examples/statemachine/animation/stickman/graphicsview.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/examples/statemachine/animation/stickman/graphicsview.cpp b/examples/statemachine/animation/stickman/graphicsview.cpp
deleted file mode 100644
index d4df975..0000000
--- a/examples/statemachine/animation/stickman/graphicsview.cpp
+++ /dev/null
@@ -1,21 +0,0 @@
-// Copyright (C) 2016 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
-
-#include "graphicsview.h"
-#include "stickman.h"
-
-#include <QKeyEvent>
-#include <QGraphicsScene>
-
-void GraphicsView::keyPressEvent(QKeyEvent *e)
-{
- if (e->key() == Qt::Key_Escape)
- close();
- emit keyPressed(Qt::Key(e->key()));
-}
-
-void GraphicsView::resizeEvent(QResizeEvent *e)
-{
- fitInView(scene()->sceneRect());
- QGraphicsView::resizeEvent(e);
-}