equal
deleted
inserted
replaced
104 } |
104 } |
105 |
105 |
106 if ( mTextValid |
106 if ( mTextValid |
107 && !mTextItem) { |
107 && !mTextItem) { |
108 mItemsChanged = true; |
108 mItemsChanged = true; |
109 mTextItem = q->style()->createPrimitive(HbStyle::P_GridViewItem_text, q); |
109 mTextItem = HbStylePrivate::createPrimitive(HbStylePrivate::P_GridViewItem_text, q); |
110 } |
110 } |
111 else if ( !mTextValid |
111 else if ( !mTextValid |
112 && mTextItem) { |
112 && mTextItem) { |
113 mItemsChanged = true; |
113 mItemsChanged = true; |
114 delete mTextItem; |
114 delete mTextItem; |
138 } |
138 } |
139 |
139 |
140 if ( mIconValid |
140 if ( mIconValid |
141 && !mIconItem) { |
141 && !mIconItem) { |
142 mItemsChanged = true; |
142 mItemsChanged = true; |
143 mIconItem = q->style()->createPrimitive(HbStyle::P_GridViewItem_icon, q); |
143 mIconItem = HbStylePrivate::createPrimitive(HbStylePrivate::P_GridViewItem_icon, q); |
144 } |
144 } |
145 else if ( !mIconValid |
145 else if ( !mIconValid |
146 && mIconItem) { |
146 && mIconItem) { |
147 mItemsChanged = true; |
147 mItemsChanged = true; |
148 delete mIconItem; |
148 delete mIconItem; |