summaryrefslogtreecommitdiffstats
path: root/tests/manual/windowflags/previewwindow.h
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2018-02-16 18:02:45 +0100
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2018-02-22 09:51:49 +0000
commit8ef9a0ae8968036e92f47e9e7c0e271f9fecaceb (patch)
tree14a221b3302040147178e8e703081db69881af7d /tests/manual/windowflags/previewwindow.h
parent8702e28628d130f7b02cec3da6bedfd9cccf89d8 (diff)
windowflags: Make it easier to debug windows without a frame
Without any content it was hard to see the window. Put some lipstick on it. Change-Id: I0fefffb0a4deba7ac91e67a6153a9a27308fe493 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'tests/manual/windowflags/previewwindow.h')
-rw-r--r--tests/manual/windowflags/previewwindow.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/manual/windowflags/previewwindow.h b/tests/manual/windowflags/previewwindow.h
index 023ddd910c..8f8fc39211 100644
--- a/tests/manual/windowflags/previewwindow.h
+++ b/tests/manual/windowflags/previewwindow.h
@@ -30,11 +30,17 @@
#define PREVIEWWINDOW_H
#include <QDialog>
+#include <QRasterWindow>
QT_BEGIN_NAMESPACE
class QPlainTextEdit;
QT_END_NAMESPACE
+class PreviewWindow : public QRasterWindow
+{
+ void paintEvent(QPaintEvent *event);
+};
+
class PreviewWidget : public QWidget
{
Q_OBJECT