ganeswidgets/tsrc/fute/HgWidgetTest/src/hgwidgettestview.cpp
changeset 13 8bf920201dea
parent 9 dde80bf4a8c7
equal deleted inserted replaced
9:dde80bf4a8c7 13:8bf920201dea
   666             connect(view, SIGNAL(imageTypeChanged(HgTestImageType)),
   666             connect(view, SIGNAL(imageTypeChanged(HgTestImageType)),
   667                 SLOT(changeModelImageType(HgTestImageType)));
   667                 SLOT(changeModelImageType(HgTestImageType)));
   668             connect(view, SIGNAL(lowResImageUseChanged(bool)), SLOT(changeLowResImageUse(bool)));
   668             connect(view, SIGNAL(lowResImageUseChanged(bool)), SLOT(changeLowResImageUse(bool)));
   669             connect(view, SIGNAL(widgetHeightChanged(int)), SLOT(changeWidgetHeight(int)));
   669             connect(view, SIGNAL(widgetHeightChanged(int)), SLOT(changeWidgetHeight(int)));
   670             connect(view, SIGNAL(widgetWidthChanged(int)), SLOT(changeWidgetWidth(int)));
   670             connect(view, SIGNAL(widgetWidthChanged(int)), SLOT(changeWidgetWidth(int)));
   671             connect(view, SIGNAL(titlePositionChanged(HgMediawall::LabelPosition)),
       
   672                 SLOT(changeTitlePosition(HgMediawall::LabelPosition)));
       
   673             connect(view, SIGNAL(titleFontChanged(HbFontSpec)),
   671             connect(view, SIGNAL(titleFontChanged(HbFontSpec)),
   674                 SLOT(changeTitleFont(HbFontSpec)));
   672                 SLOT(changeTitleFont(HbFontSpec)));
   675             connect(view, SIGNAL(descriptionPositionChanged(HgMediawall::LabelPosition)),
       
   676                 SLOT(changeDescriptionPosition(HgMediawall::LabelPosition)));
       
   677             connect(view, SIGNAL(descriptionFontChanged(HbFontSpec)),
   673             connect(view, SIGNAL(descriptionFontChanged(HbFontSpec)),
   678                 SLOT(changeDescriptionFont(HbFontSpec)));
   674                 SLOT(changeDescriptionFont(HbFontSpec)));
   679             connect(view, SIGNAL(reflectionsEnabledChanged(bool)), 
   675             connect(view, SIGNAL(reflectionsEnabledChanged(bool)), 
   680                 SLOT(changeReflectionsEnabled(bool)));
   676                 SLOT(changeReflectionsEnabled(bool)));
   681             connect(view, SIGNAL(effect3dEnabledChanged(bool)), 
   677             connect(view, SIGNAL(effect3dEnabledChanged(bool)), 
   946     mAnimationGroup->clear();
   942     mAnimationGroup->clear();
   947     
   943     
   948     if (orientation == Qt::Horizontal && mWidgetType == HgWidgetCoverflow) {
   944     if (orientation == Qt::Horizontal && mWidgetType == HgWidgetCoverflow) {
   949         setItemVisible(Hb::AllItems, false);
   945         setItemVisible(Hb::AllItems, false);
   950     }
   946     }
   951     else if (orientation == Qt::Horizontal && mWidgetType == HgWidgetGrid && mainWindow()->currentView() == this ) {
   947     else if (orientation == Qt::Horizontal
       
   948                 && mWidgetType == HgWidgetGrid
       
   949                 && mainWindow()->currentView() == this ) {
   952         setItemVisible(Hb::AllItems, false);
   950         setItemVisible(Hb::AllItems, false);
   953     }        
   951     }
   954     else if (orientation == Qt::Horizontal && mWidgetType == HgWidgetTBone) {
   952     else if (orientation == Qt::Horizontal && mWidgetType == HgWidgetTBone) {
   955         initWidget(HgWidgetCoverflow);
   953         initWidget(HgWidgetCoverflow);
   956         setItemVisible(Hb::AllItems, false);
   954         setItemVisible(Hb::AllItems, false);
   957     }            
   955     }
   958     else if (orientation == Qt::Vertical && mWidgetType == HgWidgetCoverflow) {
   956     else if (orientation == Qt::Vertical && mWidgetType == HgWidgetCoverflow) {
   959         initWidget(HgWidgetTBone);
   957         initWidget(HgWidgetTBone);
   960         setItemVisible(Hb::AllItems, true);
   958         setItemVisible(Hb::AllItems, true);
   961     }
   959     }
   962     else if (orientation == Qt::Vertical && mWidgetType == HgWidgetGrid) {
   960     else if (orientation == Qt::Vertical && mWidgetType == HgWidgetGrid) {
   963         setItemVisible(Hb::AllItems, true);
   961         setItemVisible(Hb::AllItems, true);
   964     }    
   962     }
   965 }
   963 }
   966 void HgWidgetTestView::resizeEvent(QGraphicsSceneResizeEvent *event)
   964 void HgWidgetTestView::resizeEvent(QGraphicsSceneResizeEvent *event)
   967 {
   965 {
   968     Q_UNUSED(event);
   966     Q_UNUSED(event);
   969     FUNC_LOG;
   967     FUNC_LOG;