diff options
Diffstat (limited to 'tests/auto/quick/qquicklistview/tst_qquicklistview.cpp')
-rw-r--r-- | tests/auto/quick/qquicklistview/tst_qquicklistview.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp b/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp index f177263b01..92a441a643 100644 --- a/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp +++ b/tests/auto/quick/qquicklistview/tst_qquicklistview.cpp @@ -74,6 +74,7 @@ public: private slots: void init(); + void cleanupTestCase(); // Test both QListModelInterface and QAbstractItemModel model types void qListModelInterface_items(); void qListModelInterface_package_items(); @@ -331,6 +332,15 @@ void tst_QQuickListView::init() #endif } +void tst_QQuickListView::cleanupTestCase() +{ +#ifdef SHARE_VIEWS + testForView = QString(); + delete m_view; + m_view = 0; +#endif +} + template <class T> void tst_QQuickListView::items(const QUrl &source, bool forceLayout) { |