diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2010-08-18 19:49:05 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2010-08-18 19:49:05 (GMT) |
commit | ea56dd75575dd48651a13724f45c45053b4d390d (patch) | |
tree | cecc74a3b54a10396fb3fb42b63febefff832283 /tests/auto/qapplication/modal/base.cpp | |
parent | ceb068261e326f38b4049becd75c7160a6b84f87 (diff) | |
parent | 2eba19cdaa859dc9b06eb12f2dea9da27b69ea74 (diff) | |
download | Qt-ea56dd75575dd48651a13724f45c45053b4d390d.zip Qt-ea56dd75575dd48651a13724f45c45053b4d390d.tar.gz Qt-ea56dd75575dd48651a13724f45c45053b4d390d.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-1:
use intel linker and librarian with icc
create missing output directories for substituted files
fix shadow builds with scratchbox
QMake/Win32/MinGW: Fix ar script generating with absolute paths
Crash in QWidgetPrivate::init on QApplication::quit() using a modal dialog on Mac
Crash in QX11PaintEngine::drawPixmap
Revert "Fix the rendering of lines with the X11 paint engine"
Revert "Outline / fill inconsistency in X11 paint engine."
Diffstat (limited to 'tests/auto/qapplication/modal/base.cpp')
-rw-r--r-- | tests/auto/qapplication/modal/base.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/auto/qapplication/modal/base.cpp b/tests/auto/qapplication/modal/base.cpp new file mode 100644 index 0000000..d3a7de6 --- /dev/null +++ b/tests/auto/qapplication/modal/base.cpp @@ -0,0 +1,21 @@ +#include "base.h" + +base::base(QWidget *parent) : + QWidget(parent) +{ + m_timer = new QTimer(this); + m_modalStarted = false; + m_timer->setSingleShot(false); + connect(m_timer, SIGNAL(timeout()), this, SLOT(periodicTimer())); + m_timer->start(5000); +} + +void base::periodicTimer() +{ + if(m_modalStarted) + exit(0); + m_modalDialog = new QDialog(this); + m_modalDialog->setModal(true); + m_modalDialog->show(); + m_modalStarted = true; +} |