phoneuis/bubblemanager2/tsrc/unit/ut_bubbleutils/ut_bubbleutils.cpp
changeset 76 cfea66083b62
parent 46 bc5a64e5bc3c
equal deleted inserted replaced
74:d1c62c765e48 76:cfea66083b62
   562 
   562 
   563     action.setSoftKeyRole(QAction::PositiveSoftKey);
   563     action.setSoftKeyRole(QAction::PositiveSoftKey);
   564     BubbleUtils::setButtonStyleForAction(button,action);
   564     BubbleUtils::setButtonStyleForAction(button,action);
   565     QVERIFY(button.buttonType()==BubbleButton::GreenButton);
   565     QVERIFY(button.buttonType()==BubbleButton::GreenButton);
   566 
   566 
       
   567     // The next test is flagged out from winscw build because seems that
       
   568     // in Qt 4.7 the behaviour of QAction::setSoftKeyRole and
       
   569     // QAction::softKeyRole is broken.
       
   570 #if not defined(__WINSCW__)
   567     action.setSoftKeyRole(QAction::NegativeSoftKey);
   571     action.setSoftKeyRole(QAction::NegativeSoftKey);
   568     BubbleUtils::setButtonStyleForAction(button,action);
   572     BubbleUtils::setButtonStyleForAction(button,action);
   569     QVERIFY(button.buttonType()==BubbleButton::RedButton);
   573     QVERIFY(button.buttonType()==BubbleButton::RedButton);
       
   574 #endif
   570 }
   575 }
   571 
   576 
   572 void ut_BubbleUtils::test_setIndicators()
   577 void ut_BubbleUtils::test_setIndicators()
   573 {
   578 {
   574     HbIconItem icon1;
   579     HbIconItem icon1;