videocollection/videocollectionview/tsrc/testcollectionview/src/testcollectionview.cpp
equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: tester for methods in VideoSortFilterProxyModel |
14 * Description: tester for methods in VideoSortFilterProxyModel |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
|
18 #include "xqplugin.h" |
|
19 #include "xqserviceutilstub.h" |
|
20 #include "xqserviceproviderstub.h" |
18 #include "xqserviceutilxtra.h" |
21 #include "xqserviceutilxtra.h" |
19 |
22 |
20 #include <hbaction.h> |
23 #include <hbaction.h> |
21 #include <qpointer.h> |
24 #include <qpointer.h> |
22 #include <hbapplication.h> |
25 #include <hbapplication.h> |
115 // cleanup |
118 // cleanup |
116 // --------------------------------------------------------------------------- |
119 // --------------------------------------------------------------------------- |
117 // |
120 // |
118 void TestCollectionView::cleanup() |
121 void TestCollectionView::cleanup() |
119 { |
122 { |
120 HbMainWindow *window = hbInstance->allMainWindows().value(0); |
123 if(hbInstance->allMainWindows().count() > 0) |
121 if (window) |
|
122 { |
124 { |
|
125 HbMainWindow *window = hbInstance->allMainWindows().at(0); |
123 QList<HbView*> views = window->views(); |
126 QList<HbView*> views = window->views(); |
124 int count = views.count(); |
127 int count = views.count(); |
125 for (int i = 0; i < count; i++) |
128 for (int i = 0; i < count; i++) |
126 { |
129 { |
127 window->removeView(views.at(i)); |
130 window->removeView(views.at(i)); |