equal
deleted
inserted
replaced
50 If the derived grid view item has transient state information that would have no meaning if stored within the model index (for example child item cursor |
50 If the derived grid view item has transient state information that would have no meaning if stored within the model index (for example child item cursor |
51 position selection areas etc.) the view item can use the grid view's internal state model to store this information.To use this feature |
51 position selection areas etc.) the view item can use the grid view's internal state model to store this information.To use this feature |
52 implement the state() and setState() functions in the derived class. |
52 implement the state() and setState() functions in the derived class. |
53 |
53 |
54 See also HbGridView, HbAbstractItemView, HbAbstractViewItem, HbStyleOptionAbstractViewItem |
54 See also HbGridView, HbAbstractItemView, HbAbstractViewItem, HbStyleOptionAbstractViewItem |
|
55 |
|
56 \primitives |
|
57 \primitive{icon} HbIconItem representing the icon in the HbGridViewItem. |
|
58 \primitive{text} HbTextItem representing the text in the HbGridViewItem. |
|
59 |
55 */ |
60 */ |
56 |
61 |
57 /*! |
62 /*! |
58 Constructs a grid view item with the given parent. |
63 Constructs a grid view item with the given parent. |
59 */ |
64 */ |
106 return new HbGridViewItem(*this); |
111 return new HbGridViewItem(*this); |
107 } |
112 } |
108 |
113 |
109 /*! |
114 /*! |
110 Assigns the \a source grid view item to this grid view item and returns a reference to this item. |
115 Assigns the \a source grid view item to this grid view item and returns a reference to this item. |
111 */ |
116 */ |
112 HbGridViewItem &HbGridViewItem::operator=(const HbGridViewItem &source) |
117 HbGridViewItem &HbGridViewItem::operator=(const HbGridViewItem &source) |
113 { |
118 { |
114 Q_D(HbGridViewItem); |
119 Q_D(HbGridViewItem); |
115 *d = *source.d_func(); |
120 *d = *source.d_func(); |
116 return *this; |
121 return *this; |