27 |
27 |
28 #include <hbnamespace.h> |
28 #include <hbnamespace.h> |
29 |
29 |
30 #include <QDebug> |
30 #include <QDebug> |
31 |
31 |
32 /*! |
32 /* |
33 \class HbStyleOptionAbstractViewItem |
33 \class HbStyleOptionAbstractViewItem |
34 \brief HbStyleOptionAbstractViewItem has the style component for abstract view item primitives |
34 \brief HbStyleOptionAbstractViewItem has the style component for abstract view item primitives |
35 */ |
35 */ |
36 |
36 |
37 /*! |
37 /* |
38 \var HbStyleOptionAbstractViewItem::checkState |
38 \var HbStyleOptionAbstractViewItem::checkState |
39 |
39 |
40 This variable holds what is the checkstate of the item. |
40 This variable holds what is the checkstate of the item. |
41 */ |
41 */ |
42 |
42 |
43 /*! |
43 /* |
44 \var HbStyleOptionAbstractViewItem::background |
44 \var HbStyleOptionAbstractViewItem::background |
45 |
45 |
46 This variable holds content (if any) that is set as item's background. |
46 This variable holds content (if any) that is set as item's background. |
47 |
47 |
48 Default value is NULL variant. |
48 Default value is NULL variant. |
49 */ |
49 */ |
50 |
50 |
51 /*! |
51 /* |
52 \var HbStyleOptionAbstractViewItem::itemName |
52 \var HbStyleOptionAbstractViewItem::itemName |
53 \deprecated HbStyleOptionAbstractViewItem::itemName |
|
54 is deprecated. This variable will cease to exist in near future. HbStyleOptionListViewItem::itemNameIndex replaces this variable. |
|
55 |
53 |
56 This variable holds content item name of the primitive item required by css/xml layouting. |
54 This variable holds content item name of the primitive item required by css/xml layouting. |
57 |
55 |
58 \sa HbStyleOptionListViewItem::itemNameIndex |
56 \sa HbStyleOptionListViewItem::itemNameIndex |
59 */ |
57 */ |
60 |
58 |
61 |
59 |
62 /*! |
60 /* |
63 \var HbStyleOptionAbstractViewItem::modelItemType |
61 \var HbStyleOptionAbstractViewItem::modelItemType |
64 |
62 |
65 This variable holds what is the type of the model item that view item is representing. |
63 This variable holds what is the type of the model item that view item is representing. |
66 |
64 |
67 Default value is Hb::StandardItem. |
65 Default value is Hb::StandardItem. |
68 */ |
66 */ |
69 |
67 |
70 /*! |
68 /* |
71 \var HbStyleOptionAbstractViewItem::viewItemType |
69 \var HbStyleOptionAbstractViewItem::viewItemType |
72 |
70 |
73 This variable holds what is the type of the view item. This is value returned by QGraphicsItem::type(). |
71 This variable holds what is the type of the view item. This is value returned by QGraphicsItem::type(). |
74 |
72 |
75 Default is Hb::ItemType_Last+1 |
73 Default is Hb::ItemType_Last+1 |
76 */ |
74 */ |
77 |
75 |
78 /*! |
76 /* |
79 \var HbStyleOptionAbstractViewItem::index |
77 \var HbStyleOptionAbstractViewItem::index |
80 |
78 |
81 The model index that the view item represents. |
79 The model index that the view item represents. |
82 */ |
80 */ |
83 |
81 |
84 /*! |
82 /* |
85 \var HbStyleOptionAbstractViewItem::singleSelectionMode |
83 \var HbStyleOptionAbstractViewItem::singleSelectionMode |
86 |
84 |
87 This variable holds information whether HbAbstractItemView::SelectionMode mode is used. If it is used, set this variable On. |
85 This variable holds information whether HbAbstractItemView::SelectionMode mode is used. If it is used, set this variable On. |
88 |
86 |
89 Default value is false, which is fine when either any selection mode is not selected or multi or contiguous selection |
87 Default value is false, which is fine when either any selection mode is not selected or multi or contiguous selection |
90 mode is in use. |
88 mode is in use. |
91 */ |
89 */ |
92 |
90 |
93 /*! \var HbStyleOptionAbstractViewItem::insidePopup |
91 /* \var HbStyleOptionAbstractViewItem::insidePopup |
94 Indicates whether widget and its children (classes derived from HbWidgetBase) are inside popup. |
92 Indicates whether widget and its children (classes derived from HbWidgetBase) are inside popup. |
95 */ |
93 */ |
96 |
94 |
97 |
|
98 /*! |
|
99 \deprecated HbStyleOptionAbstractViewItem::HbStyleOptionAbstractViewItem() |
|
100 is deprecated. Styleoptions will not be public. |
|
101 |
|
102 */ |
|
103 |
95 |
104 HbStyleOptionAbstractViewItem::HbStyleOptionAbstractViewItem() : |
96 HbStyleOptionAbstractViewItem::HbStyleOptionAbstractViewItem() : |
105 HbStyleOption(), |
97 HbStyleOption(), |
106 modelItemType(Hb::StandardItem), |
98 modelItemType(Hb::StandardItem), |
107 viewItemType(Hb::ItemType_Last+1), |
99 viewItemType(Hb::ItemType_Last+1), |
109 insidePopup(false) |
101 insidePopup(false) |
110 { |
102 { |
111 type = Type; |
103 type = Type; |
112 version = Version; |
104 version = Version; |
113 } |
105 } |
114 |
|
115 /*! |
|
116 \deprecated HbStyleOptionAbstractViewItem::HbStyleOptionAbstractViewItem(const HbStyleOptionAbstractViewItem&) |
|
117 is deprecated. Styleoptions will not be public. |
|
118 |
|
119 */ |
|
120 |
|
121 HbStyleOptionAbstractViewItem::HbStyleOptionAbstractViewItem(const HbStyleOptionAbstractViewItem &other) : |
106 HbStyleOptionAbstractViewItem::HbStyleOptionAbstractViewItem(const HbStyleOptionAbstractViewItem &other) : |
122 HbStyleOption(other), |
107 HbStyleOption(other), |
123 checkState(other.checkState), |
108 checkState(other.checkState), |
124 background(other.background), |
109 background(other.background), |
125 modelItemType(other.modelItemType), |
110 modelItemType(other.modelItemType), |