--- a/videocollection/tsrc/stubs/src/videocollectionuiloader.cpp Wed Jun 23 18:14:16 2010 +0300
+++ b/videocollection/tsrc/stubs/src/videocollectionuiloader.cpp Tue Jul 06 14:17:50 2010 +0300
@@ -144,7 +144,17 @@
}
VideoListWidget *videoList = qobject_cast<VideoListWidget*>(object);
VideoSortFilterProxyModel *model = wrapper.getModel(type);
- videoList->initialize(*model, 0);
+
+ VideoCollectionCommon::TCollectionLevels level = VideoCollectionCommon::ELevelInvalid;
+ if(name == DOCML_NAME_VC_VIDEOLISTWIDGET )
+ {
+ level = VideoCollectionCommon::ELevelVideos;
+ }
+ else if(name == DOCML_NAME_VC_COLLECTIONWIDGET)
+ {
+ level = VideoCollectionCommon::ELevelCategory;
+ }
+ videoList->initialize(*model, 0, level);
}
else if (name == DOCML_NAME_DIALOG)
{