diff options
author | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-06-11 12:11:22 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@theqtcompany.com> | 2015-06-16 14:14:18 +0000 |
commit | 8d5516b58541b2ad63497437271f0a4e36ed311d (patch) | |
tree | 57f361f0833511e0b0ce55593a39e46d06232505 /tests/auto/widgets/kernel/qlayout | |
parent | 05fa4ac7dfa850c10f0ad37bfff4b649f93a5dde (diff) |
Add check for top level widget leaks in kernel test of QtWidgets.
Add a cleanup function for the check and disable animations
in tst_qwidgetaction to prevent effect widgets from interfering
(vista style animations).
Change-Id: I043ecb131c8dcd07b6ef10bc75c9e010ab569e85
Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
Diffstat (limited to 'tests/auto/widgets/kernel/qlayout')
-rw-r--r-- | tests/auto/widgets/kernel/qlayout/tst_qlayout.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/widgets/kernel/qlayout/tst_qlayout.cpp b/tests/auto/widgets/kernel/qlayout/tst_qlayout.cpp index d661c074ac..3bdd335fa6 100644 --- a/tests/auto/widgets/kernel/qlayout/tst_qlayout.cpp +++ b/tests/auto/widgets/kernel/qlayout/tst_qlayout.cpp @@ -66,6 +66,7 @@ public: virtual ~tst_QLayout(); private slots: + void cleanup() { QVERIFY(QApplication::topLevelWidgets().isEmpty()); } void getSetCheck(); void geometry(); void smartMaxSize(); |