src/hbwidgets/itemviews/hbindexfeedback_p.cpp
changeset 21 4633027730f5
parent 7 923ff622b8b9
child 28 b7da29130b0e
equal deleted inserted replaced
7:923ff622b8b9 21:4633027730f5
   341     Q_Q( HbIndexFeedback );
   341     Q_Q( HbIndexFeedback );
   342 
   342 
   343     HbStyleOptionIndexFeedback option;
   343     HbStyleOptionIndexFeedback option;
   344     q->initStyleOption(&option);
   344     q->initStyleOption(&option);
   345     if (mTextItem) {
   345     if (mTextItem) {
   346         q->style()->updatePrimitive(mTextItem, HbStyle::P_IndexFeedback_popup_text, &option);
   346         HbStylePrivate::updatePrimitive(mTextItem, HbStylePrivate::P_IndexFeedback_popup_text, &option);
   347     }
   347     }
   348     if (mPopupItem) {
   348     if (mPopupItem) {
   349         q->style()->updatePrimitive(mPopupItem, HbStyle::P_IndexFeedback_popup_background, &option);
   349         HbStylePrivate::updatePrimitive(mPopupItem, HbStylePrivate::P_IndexFeedback_popup_background, &option);
   350     }
   350     }
   351 }
   351 }
   352 
   352 
   353 /*
   353 /*
   354     Create the primitives for the index feedback.
   354     Create the primitives for the index feedback.
   358     Q_Q( HbIndexFeedback );
   358     Q_Q( HbIndexFeedback );
   359 
   359 
   360     mPopupItemList.clear();
   360     mPopupItemList.clear();
   361 
   361 
   362     if (!mTextItem) {
   362     if (!mTextItem) {
   363         mTextItem = q->style()->createPrimitive(HbStyle::P_IndexFeedback_popup_text, q);
   363         mTextItem = HbStylePrivate::createPrimitive(HbStylePrivate::P_IndexFeedback_popup_text, q);
   364         mTextItem->hide();
   364         mTextItem->hide();
   365         mPopupItemList.append(mTextItem);
   365         mPopupItemList.append(mTextItem);
   366     }
   366     }
   367 
   367 
   368     if (!mPopupItem) {
   368     if (!mPopupItem) {
   369         mPopupItem = q->style()->createPrimitive(HbStyle::P_IndexFeedback_popup_background, q);
   369         mPopupItem = HbStylePrivate::createPrimitive(HbStylePrivate::P_IndexFeedback_popup_background, q);
   370         mPopupItem->hide();
   370         mPopupItem->hide();
   371         mPopupItemList.append(mPopupItem);
   371         mPopupItemList.append(mPopupItem);
   372     }
   372     }
   373 }
   373 }
   374 
   374