equal
deleted
inserted
replaced
142 } else if (name == DOCML_NAME_VC_COLLECTIONCONTENTWIDGET) { |
142 } else if (name == DOCML_NAME_VC_COLLECTIONCONTENTWIDGET) { |
143 type = VideoCollectionCommon::EModelTypeCollectionContent; |
143 type = VideoCollectionCommon::EModelTypeCollectionContent; |
144 } |
144 } |
145 VideoListWidget *videoList = qobject_cast<VideoListWidget*>(object); |
145 VideoListWidget *videoList = qobject_cast<VideoListWidget*>(object); |
146 VideoSortFilterProxyModel *model = wrapper.getModel(type); |
146 VideoSortFilterProxyModel *model = wrapper.getModel(type); |
147 videoList->initialize(*model, 0); |
147 |
|
148 VideoCollectionCommon::TCollectionLevels level = VideoCollectionCommon::ELevelInvalid; |
|
149 if(name == DOCML_NAME_VC_VIDEOLISTWIDGET ) |
|
150 { |
|
151 level = VideoCollectionCommon::ELevelVideos; |
|
152 } |
|
153 else if(name == DOCML_NAME_VC_COLLECTIONWIDGET) |
|
154 { |
|
155 level = VideoCollectionCommon::ELevelCategory; |
|
156 } |
|
157 videoList->initialize(*model, 0, level); |
148 } |
158 } |
149 else if (name == DOCML_NAME_DIALOG) |
159 else if (name == DOCML_NAME_DIALOG) |
150 { |
160 { |
151 |
161 |
152 } |
162 } |