summaryrefslogtreecommitdiffstats
path: root/tests/manual/windowflags/previewwindow.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2016-11-16 12:34:00 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2016-11-18 18:58:16 +0000
commitcb0d8ffdd930ed0b8b3966e133e91d8de44b0239 (patch)
treef2b9359411cb207c2317f01ccb1b5b7ae6ff4942 /tests/manual/windowflags/previewwindow.h
parentf817a995b2f72d4d293816de7ae05b37585eb48d (diff)
Extend manual test windowflags
Change the main window to contain a QTabWidget and add a log widget logging relevant events on the top level widgets for testing changes. In the preview window, add new window flags of Qt 5 and output geometry, margins and window state in addition. Change-Id: Icec366223b6c163d58a69034687f3d9323a91533 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'tests/manual/windowflags/previewwindow.h')
-rw-r--r--tests/manual/windowflags/previewwindow.h31
1 files changed, 17 insertions, 14 deletions
diff --git a/tests/manual/windowflags/previewwindow.h b/tests/manual/windowflags/previewwindow.h
index 00d5cc39f9..acd79735ad 100644
--- a/tests/manual/windowflags/previewwindow.h
+++ b/tests/manual/windowflags/previewwindow.h
@@ -32,8 +32,7 @@
#include <QDialog>
QT_BEGIN_NAMESPACE
-class QPushButton;
-class QTextEdit;
+class QPlainTextEdit;
QT_END_NAMESPACE
class PreviewWindow : public QWidget
@@ -45,13 +44,15 @@ public:
void setWindowFlags(Qt::WindowFlags flags);
+public slots:
+ void updateInfo();
+
+protected:
+ void resizeEvent(QResizeEvent *);
+ void moveEvent(QMoveEvent *);
+
private:
- QTextEdit *textEdit;
- QPushButton *closeButton;
- QPushButton *showNormalButton;
- QPushButton *showMinimizedButton;
- QPushButton *showMaximizedButton;
- QPushButton *showFullScreenButton;
+ QPlainTextEdit *textEdit;
};
class PreviewDialog : public QDialog
@@ -63,13 +64,15 @@ public:
void setWindowFlags(Qt::WindowFlags flags);
+public slots:
+ void updateInfo();
+
+protected:
+ void resizeEvent(QResizeEvent *);
+ void moveEvent(QMoveEvent *);
+
private:
- QTextEdit *textEdit;
- QPushButton *closeButton;
- QPushButton *showNormalButton;
- QPushButton *showMinimizedButton;
- QPushButton *showMaximizedButton;
- QPushButton *showFullScreenButton;
+ QPlainTextEdit *textEdit;
};
#endif