--- a/src/hbwidgets/sliders/hbzoomslider_p.cpp Tue Jul 06 14:36:53 2010 +0300
+++ b/src/hbwidgets/sliders/hbzoomslider_p.cpp Wed Aug 18 10:05:37 2010 +0300
@@ -129,29 +129,29 @@
if ( !elementItemMap.contains(HbSlider::IncreaseElement) ) {
elementItemMap[HbSlider::IncreaseElement].item =
- q->style( )->createPrimitive( HbStyle::P_SliderElement_increase, q);
+ HbStylePrivate::createPrimitive( HbStylePrivate::P_SliderElement_increase, q);
HbStyle::setItemName( elementItemMap[HbSlider::IncreaseElement].item, "increment-icon" );
- elementItemMap[HbSlider::IncreaseElement].type= HbStyle::P_SliderElement_increase;
+ elementItemMap[HbSlider::IncreaseElement].type= HbStylePrivate::P_SliderElement_increase;
elementItemMap[HbSlider::IncreaseElement].touchItem =
- q->style( )->createPrimitive( HbStyle::P_SliderElement_touchincrease,q );
+ HbStylePrivate::createPrimitive( HbStylePrivate::P_SliderElement_touchincrease,q );
HbStyle::setItemName( elementItemMap[HbSlider::IncreaseElement].touchItem, "increment-icon-toucharea" );
}
if ( !elementItemMap.contains(HbSlider::DecreaseElement) ) {
elementItemMap[HbSlider::DecreaseElement].item =
- q->style( )->createPrimitive( HbStyle::P_SliderElement_decrease, q);
- elementItemMap[HbSlider::DecreaseElement].type = HbStyle::P_SliderElement_decrease;
+ HbStylePrivate::createPrimitive( HbStylePrivate::P_SliderElement_decrease, q);
+ elementItemMap[HbSlider::DecreaseElement].type = HbStylePrivate::P_SliderElement_decrease;
HbStyle::setItemName( elementItemMap[HbSlider::DecreaseElement].item, "decrement-icon" );
- elementItemMap[HbSlider::DecreaseElement].touchItem = q->style( )->createPrimitive( HbStyle::P_SliderElement_touchdecrease,q ) ;
+ elementItemMap[HbSlider::DecreaseElement].touchItem = HbStylePrivate::createPrimitive( HbStylePrivate::P_SliderElement_touchdecrease,q ) ;
HbStyle::setItemName( elementItemMap[HbSlider::DecreaseElement].touchItem, "decrement-icon-toucharea" );
}
HbStyleOptionSlider option;
q->initStyleOption( &option );
option.sliderElementIcon = icons.value( HbSlider::IncreaseElement );
- q->style( )->updatePrimitive(elementItemMap[HbSlider::IncreaseElement].item ,HbStyle::P_SliderElement_increase,&option );
+ HbStylePrivate::updatePrimitive(elementItemMap[HbSlider::IncreaseElement].item ,HbStylePrivate::P_SliderElement_increase,&option );
option.sliderElementIcon = icons.value( HbSlider::DecreaseElement );
- q->style( )->updatePrimitive(elementItemMap[HbSlider::DecreaseElement].item ,HbStyle::P_SliderElement_decrease,&option );
+ HbStylePrivate::updatePrimitive(elementItemMap[HbSlider::DecreaseElement].item ,HbStylePrivate::P_SliderElement_decrease,&option );
q->setFlags( QGraphicsItem::ItemIsFocusable );
q->connect( q, SIGNAL( textClicked( ) ), q, SLOT( _q_resetToDefault( ) ) );
q->setProperty("changeincrementState" ,false);