videocollection/videocollectionview/src/videolistwidget.cpp
changeset 59 a76e86df7ccd
parent 52 e3cecb93e76a
child 62 0e1e938beb1a
equal deleted inserted replaced
52:e3cecb93e76a 59:a76e86df7ccd
   253     
   253     
   254     if(!connect(this, SIGNAL(scrollingStarted()), this, SLOT(scrollingStartedSlot())) ||
   254     if(!connect(this, SIGNAL(scrollingStarted()), this, SLOT(scrollingStartedSlot())) ||
   255        !connect(this, SIGNAL(scrollingEnded()), this, SLOT(scrollingEndedSlot())) ||
   255        !connect(this, SIGNAL(scrollingEnded()), this, SLOT(scrollingEndedSlot())) ||
   256        !connect(this, SIGNAL(scrollPositionChanged(const QPointF &)), 
   256        !connect(this, SIGNAL(scrollPositionChanged(const QPointF &)), 
   257                this, SLOT(scrollPositionChangedSlot(const QPointF &))) ||
   257                this, SLOT(scrollPositionChangedSlot(const QPointF &))) ||
   258        !connect(mScrollPositionTimer, SIGNAL(timeout()), this, SLOT(scrollPositionTimerSlot())) || 
   258        !connect(mScrollPositionTimer, SIGNAL(timeout()), 
       
   259                this, SLOT(scrollPositionTimerSlot())) || 
   259        !connect(this, SIGNAL(longPressed(HbAbstractViewItem *, const QPointF &)), 
   260        !connect(this, SIGNAL(longPressed(HbAbstractViewItem *, const QPointF &)), 
   260                 this, SLOT(longPressedSlot(HbAbstractViewItem *, const QPointF &))))
   261                 this, SLOT(longPressedSlot(HbAbstractViewItem *, const QPointF &))) ||
       
   262        !connect(mModel, SIGNAL(modelSorted()), this, 
       
   263                SLOT(fetchThumbnailsForVisibleItems()), Qt::QueuedConnection))
   261     {
   264     {
   262         return -1;
   265         return -1;
   263     }
   266     }
   264 
   267 
   265     // handle navi key trigger -signal connection
   268     // handle navi key trigger -signal connection
   312     disconnect(
   315     disconnect(
   313         this, SIGNAL(scrollPositionChanged(const QPointF&)), 
   316         this, SIGNAL(scrollPositionChanged(const QPointF&)), 
   314         this, SLOT(scrollPositionChangedSlot(const QPointF&)));
   317         this, SLOT(scrollPositionChangedSlot(const QPointF&)));
   315     disconnect(this, SIGNAL(longPressed(HbAbstractViewItem *, const QPointF &)), 
   318     disconnect(this, SIGNAL(longPressed(HbAbstractViewItem *, const QPointF &)), 
   316              this, SLOT(longPressedSlot(HbAbstractViewItem *, const QPointF &)));
   319              this, SLOT(longPressedSlot(HbAbstractViewItem *, const QPointF &)));
       
   320     disconnect(mModel, SIGNAL(modelSorted()), 
       
   321              this, SLOT(fetchThumbnailsForVisibleItems()));
   317     
   322     
   318     // check that scroll position timer is created
   323     // check that scroll position timer is created
   319     if (mScrollPositionTimer)
   324     if (mScrollPositionTimer)
   320     {
   325     {
   321         disconnect(
   326         disconnect(
   428     mContextMenu->setObjectName(LIST_WIDGET_OBJECT_NAME_CONTEXT_MENU);
   433     mContextMenu->setObjectName(LIST_WIDGET_OBJECT_NAME_CONTEXT_MENU);
   429 
   434 
   430     if (mService == VideoServices::EUriFetcher)
   435     if (mService == VideoServices::EUriFetcher)
   431     {
   436     {
   432         mContextMenuActions[EActionAttach] = 
   437         mContextMenuActions[EActionAttach] = 
   433                 mContextMenu->addAction(hbTrId("txt_videos_menu_attach"), this, SLOT(openItemSlot()));
   438                 mContextMenu->addAction(hbTrId("txt_common_menu_select"), this, SLOT(openItemSlot()));
   434         mContextMenuActions[EActionAttach]->setObjectName(LIST_WIDGET_OBJECT_NAME_ACTION_ATTACH);
   439         mContextMenuActions[EActionAttach]->setObjectName(LIST_WIDGET_OBJECT_NAME_ACTION_ATTACH);
   435         
   440         
   436         mContextMenuActions[EActionOpen]   = 
   441         mContextMenuActions[EActionOpen]   = 
   437                                     mContextMenu->addAction(hbTrId("txt_common_menu_open"), this, SLOT(openItemSlot()));
   442                                     mContextMenu->addAction(hbTrId("txt_common_menu_open"), this, SLOT(openItemSlot()));
   438         mContextMenuActions[EActionOpen]->setObjectName(LIST_WIDGET_OBJECT_NAME_ACTION_OPEN);
   443         mContextMenuActions[EActionOpen]->setObjectName(LIST_WIDGET_OBJECT_NAME_ACTION_OPEN);