videocollection/tsrc/stubs/src/videocollectionuiloader.cpp
changeset 47 45e72b57a2fd
parent 24 7d93ee07fb27
child 62 0e1e938beb1a
equal deleted inserted replaced
46:adbe7d5ba2f5 47:45e72b57a2fd
   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     }