summaryrefslogtreecommitdiffstats
path: root/examples/widgets/touch/fingerpaint/scribblearea.h
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2023-06-26 14:20:41 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2023-06-28 09:56:39 +0200
commit0b6f5ae131af140088fbc5e770779f9cf8fdbd7f (patch)
treee4fbc5630ab76c95a9cf6de0b98de99a0ad9963e /examples/widgets/touch/fingerpaint/scribblearea.h
parentbd32c7d7055b436b8c33486a5b5ce1c29db77fd4 (diff)
Move finger paint example to manual test
Pick-to: 6.5 6.6 Change-Id: I26eec035eaa78eac2aa96de72ae38093bc08fd23 Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'examples/widgets/touch/fingerpaint/scribblearea.h')
-rw-r--r--examples/widgets/touch/fingerpaint/scribblearea.h43
1 files changed, 0 insertions, 43 deletions
diff --git a/examples/widgets/touch/fingerpaint/scribblearea.h b/examples/widgets/touch/fingerpaint/scribblearea.h
deleted file mode 100644
index 624f07074a..0000000000
--- a/examples/widgets/touch/fingerpaint/scribblearea.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright (C) 2016 The Qt Company Ltd.
-// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
-
-#ifndef SCRIBBLEAREA_H
-#define SCRIBBLEAREA_H
-
-#include <QColor>
-#include <QImage>
-#include <QPoint>
-#include <QWidget>
-
-//! [0]
-class ScribbleArea : public QWidget
-{
- Q_OBJECT
-
-public:
- ScribbleArea(QWidget *parent = nullptr);
-
- bool openImage(const QString &fileName);
- bool saveImage(const QString &fileName, const char *fileFormat);
-
- bool isModified() const { return modified; }
-
-public slots:
- void clearImage();
- void print();
-
-protected:
- void paintEvent(QPaintEvent *event) override;
- void resizeEvent(QResizeEvent *event) override;
- bool event(QEvent *event) override;
-
-private:
- void resizeImage(QImage *image, const QSize &newSize);
-
- bool modified;
- QList<QColor> myPenColors;
- QImage image;
-};
-//! [0]
-
-#endif