diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2017-09-14 16:13:53 +0200 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2018-08-23 12:57:01 +0000 |
commit | e498a1d09d79cbb26437a4823b67ae56c5542514 (patch) | |
tree | 7244f1967adc581824551838eae7c3da1e59b882 /examples/widgets/widgets/tablet/mainwindow.h | |
parent | 5ded4e35db321944157d431b885ba35f29ead68f (diff) |
Tablet example: add a menu item to clear the canvas
It's annoying to have to kill the app and start over when it gets too
cluttered.
Change-Id: Ic72e372e5742de4e7c6bb818a3150283498a517b
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'examples/widgets/widgets/tablet/mainwindow.h')
-rw-r--r-- | examples/widgets/widgets/tablet/mainwindow.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/examples/widgets/widgets/tablet/mainwindow.h b/examples/widgets/widgets/tablet/mainwindow.h index 4b99324f04..4be28784b5 100644 --- a/examples/widgets/widgets/tablet/mainwindow.h +++ b/examples/widgets/widgets/tablet/mainwindow.h @@ -72,8 +72,9 @@ private slots: void setLineWidthValuator(QAction *action); void setSaturationValuator(QAction *action); void setEventCompression(bool compress); - void save(); + bool save(); void load(); + void clear(); void about(); private: |