--- a/src/hbwidgets/widgets/hbdatetimepicker_p.cpp Tue Jul 06 14:36:53 2010 +0300
+++ b/src/hbwidgets/widgets/hbdatetimepicker_p.cpp Wed Aug 18 10:05:37 2010 +0300
@@ -344,7 +344,7 @@
mLayout->setSpacing(1);
mLayout->setContentsMargins(0,0,0,0);
mContent->setLayout(mLayout);
- q->style()->setItemName(mContent,"content");
+ HbStyle::setItemName(mContent,"content");
mDateTimeMode = dateTimeMode;
mIntervals[QDateTimeEdit::MinuteSection]=1;
@@ -1354,17 +1354,17 @@
{
Q_Q(HbDateTimePicker);
if(!mBackground) {
- mBackground = q->style()->createPrimitive(HbStyle::P_DateTimePicker_background,q);
- q->style()->setItemName(mBackground,"background");
+ mBackground = HbStylePrivate::createPrimitive(HbStylePrivate::P_DateTimePicker_background,q);
+ HbStyle::setItemName(mBackground,"background");
}
if(!mFrame) {
- mFrame = q->style()->createPrimitive(HbStyle::P_DateTimePicker_frame,q);
- q->style()->setItemName(mFrame,"frame");
+ mFrame = HbStylePrivate::createPrimitive(HbStylePrivate::P_DateTimePicker_frame,q);
+ HbStyle::setItemName(mFrame,"frame");
}
if(!mHighlight){
- mHighlight = q->style()->createPrimitive(HbStyle::P_TumbleView_highlight,q);
- q->style()->setItemName(mHighlight,"highlight");
+ mHighlight = HbStylePrivate::createPrimitive(HbStylePrivate::P_TumbleView_highlight,q);
+ HbStyle::setItemName(mHighlight,"highlight");
}
}