summaryrefslogtreecommitdiffstats
path: root/tests/auto/qapplication/modal/base.h
diff options
context:
space:
mode:
authorCarlos Manuel Duclos Vergara <carlos.duclos@nokia.com>2010-08-18 15:59:04 (GMT)
committerCarlos Manuel Duclos Vergara <carlos.duclos@nokia.com>2010-08-18 16:04:01 (GMT)
commit8dd8db250d92521fda619bdcf3e1c859b37b2da0 (patch)
treea020322262504fe0cbc3bcd6f7c620bc41caea3f /tests/auto/qapplication/modal/base.h
parent8e7fb343372acd0bc5fe04db7a5c5542541d4538 (diff)
downloadQt-8dd8db250d92521fda619bdcf3e1c859b37b2da0.zip
Qt-8dd8db250d92521fda619bdcf3e1c859b37b2da0.tar.gz
Qt-8dd8db250d92521fda619bdcf3e1c859b37b2da0.tar.bz2
Crash in QWidgetPrivate::init on QApplication::quit() using a modal dialog on Mac
The problem was the order of deletion in the destructor. To autotest this I create an application, start a modal dialog and then quit the application. The fix was contributed by a customer. Task-number: QTBUG-12673 Reviewed-by: Olivier Goffart
Diffstat (limited to 'tests/auto/qapplication/modal/base.h')
-rw-r--r--tests/auto/qapplication/modal/base.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/auto/qapplication/modal/base.h b/tests/auto/qapplication/modal/base.h
new file mode 100644
index 0000000..ebf1198
--- /dev/null
+++ b/tests/auto/qapplication/modal/base.h
@@ -0,0 +1,23 @@
+#ifndef BASE_H
+#define BASE_H
+
+#include <QWidget>
+#include <QTimer>
+#include <QDialog>
+
+class base : public QWidget
+{
+Q_OBJECT
+ QTimer *m_timer;
+ bool m_modalStarted;
+ QDialog *m_modalDialog;
+public:
+ explicit base(QWidget *parent = 0);
+
+signals:
+
+public slots:
+ void periodicTimer();
+};
+
+#endif // BASE_H