diff options
Diffstat (limited to 'examples/statemachine/animation/stickman/rectbutton.h')
-rw-r--r-- | examples/statemachine/animation/stickman/rectbutton.h | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/examples/statemachine/animation/stickman/rectbutton.h b/examples/statemachine/animation/stickman/rectbutton.h deleted file mode 100644 index 3232389..0000000 --- a/examples/statemachine/animation/stickman/rectbutton.h +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (C) 2016 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause - -#ifndef RECTBUTTON_H -#define RECTBUTTON_H - -#include <QGraphicsObject> - -class RectButton : public QGraphicsObject -{ - Q_OBJECT -public: - RectButton(const QString &buttonText); - - QRectF boundingRect() const override; - void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget) override; - -protected: - void mousePressEvent (QGraphicsSceneMouseEvent *event) override; - -signals: - void clicked(); - -private: - QString m_ButtonText; -}; - -#endif // RECTBUTTON_H |