summaryrefslogtreecommitdiffstats
path: root/tests/manual/qtbug-8933/widget.h
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/qtbug-8933/widget.h')
-rw-r--r--tests/manual/qtbug-8933/widget.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/tests/manual/qtbug-8933/widget.h b/tests/manual/qtbug-8933/widget.h
new file mode 100644
index 0000000..f6afa8f
--- /dev/null
+++ b/tests/manual/qtbug-8933/widget.h
@@ -0,0 +1,32 @@
+#ifndef WIDGET_H
+#define WIDGET_H
+
+#include <QWidget>
+#include <QMenuBar>
+#include <QMenu>
+
+namespace Ui {
+ class Widget;
+}
+
+class Widget : public QWidget {
+ Q_OBJECT
+public:
+ Widget(QWidget *parent = 0);
+ ~Widget();
+
+public slots:
+ void switchToFullScreen();
+ void switchToNormalScreen();
+ void addMenuBar();
+ void removeMenuBar();
+
+protected:
+ void changeEvent(QEvent *e);
+
+private:
+ Ui::Widget *ui;
+ QMenuBar *menuBar;
+};
+
+#endif // WIDGET_H