@@ -31,8 +31,8 @@ class QEvent;
31
31
* \ingroup gui
32
32
* QStandardItemModel subclass which makes all items checkable
33
33
* by default.
34
- * @ note added in QGIS 3.0
35
- * @ note not available in Python bindings
34
+ * \ note added in QGIS 3.0
35
+ * \ note not available in Python bindings
36
36
**/
37
37
#ifndef SIP_RUN
38
38
class QgsCheckableItemModel : public QStandardItemModel
@@ -42,29 +42,29 @@ class QgsCheckableItemModel : public QStandardItemModel
42
42
public:
43
43
44
44
/* * Constructor for QgsCheckableItemModel.
45
- * @ param parent parent object
45
+ * \ param parent parent object
46
46
*/
47
47
QgsCheckableItemModel ( QObject *parent = nullptr );
48
48
49
49
/* * Returns a combination of the item flags: items are enabled
50
50
* (ItemIsEnabled), selectable (ItemIsSelectable) and checkable
51
51
* (ItemIsUserCheckable).
52
- * @ param index item index
52
+ * \ param index item index
53
53
*/
54
54
virtual Qt::ItemFlags flags ( const QModelIndex &index ) const ;
55
55
56
56
/* * Returns the data stored under the given role for the item
57
57
* referred to by the index.
58
- * @ param index item index
59
- * @ param role data role
58
+ * \ param index item index
59
+ * \ param role data role
60
60
*/
61
61
virtual QVariant data ( const QModelIndex &index, int role = Qt::DisplayRole ) const ;
62
62
63
63
/* * Sets the role data for the item at index to value.
64
- * @ param index item index
65
- * @ param value data value
66
- * @ param role data role
67
- * @ returns true on success, false otherwise
64
+ * \ param index item index
65
+ * \ param value data value
66
+ * \ param role data role
67
+ * \ returns true on success, false otherwise
68
68
*/
69
69
virtual bool setData ( const QModelIndex &index, const QVariant &value, int role = Qt::EditRole );
70
70
@@ -80,8 +80,8 @@ class QgsCheckableItemModel : public QStandardItemModel
80
80
* \ingroup gui
81
81
* QStyledItemDelegate subclass for QgsCheckableComboBox. Needed for
82
82
* correct drawing of the checkable items on Mac and GTK.
83
- * @ note added in QGIS 3.0
84
- * @ note not available in Python bindings
83
+ * \ note added in QGIS 3.0
84
+ * \ note not available in Python bindings
85
85
**/
86
86
87
87
class QgsCheckBoxDelegate : public QStyledItemDelegate
@@ -91,15 +91,15 @@ class QgsCheckBoxDelegate : public QStyledItemDelegate
91
91
public:
92
92
93
93
/* * Constructor for QgsCheckBoxDelegate.
94
- * @ param parent parent object
94
+ * \ param parent parent object
95
95
*/
96
96
QgsCheckBoxDelegate ( QObject *parent = nullptr );
97
97
98
98
/* * Renders the delegate using the given painter and style option
99
99
* for the item specified by index.
100
- * @ param painter painter to use
101
- * @ param option style option
102
- * @ param index item index
100
+ * \ param painter painter to use
101
+ * \ param option style option
102
+ * \ param index item index
103
103
*/
104
104
virtual void paint ( QPainter *painter, const QStyleOptionViewItem &option, const QModelIndex &index ) const ;
105
105
};
@@ -108,7 +108,7 @@ class QgsCheckBoxDelegate : public QStyledItemDelegate
108
108
/* * \class QgsCheckableComboBox
109
109
* \ingroup gui
110
110
* QComboBox subclass which allows selecting multiple items.
111
- * @ note added in QGIS 3.0
111
+ * \ note added in QGIS 3.0
112
112
**/
113
113
114
114
class GUI_EXPORT QgsCheckableComboBox : public QComboBox
@@ -122,58 +122,58 @@ class GUI_EXPORT QgsCheckableComboBox : public QComboBox
122
122
public:
123
123
124
124
/* * Constructor for QgsCheckableComboBox.
125
- * @ param parent parent object
125
+ * \ param parent parent object
126
126
*/
127
127
QgsCheckableComboBox ( QWidget *parent = nullptr );
128
128
129
129
/* * Returns separator used to separate items in the display text.
130
- * @ see setSeparator()
130
+ * \ see setSeparator()
131
131
*/
132
132
QString separator () const ;
133
133
134
134
/* * Set separator used to separate items in the display text.
135
- * @ param separator separator to use
136
- * @ see separator()
135
+ * \ param separator separator to use
136
+ * \ see separator()
137
137
*/
138
138
void setSeparator ( const QString &separator );
139
139
140
140
/* * Returns default text which will be displayed in the widget
141
141
* when no items selected.
142
- * @ see setDefaultText()
142
+ * \ see setDefaultText()
143
143
*/
144
144
QString defaultText () const ;
145
145
146
146
/* * Set default text which will be displayed in the widget when
147
147
* no items selected.
148
- * @ param text default text
149
- * @ see defaultText()
148
+ * \ param text default text
149
+ * \ see defaultText()
150
150
*/
151
151
void setDefaultText ( const QString &text );
152
152
153
153
/* * Returns currently checked items.
154
- * @ see setCheckedItems()
154
+ * \ see setCheckedItems()
155
155
*/
156
156
QStringList checkedItems () const ;
157
157
158
158
/* * Returns the checked state of the item identified by index
159
- * @ param index item index
160
- * @ see setItemCheckState()
161
- * @ see toggleItemCheckState()
159
+ * \ param index item index
160
+ * \ see setItemCheckState()
161
+ * \ see toggleItemCheckState()
162
162
*/
163
163
Qt::CheckState itemCheckState ( int index ) const ;
164
164
165
165
/* * Sets the item check state to state
166
- * @ param index item index
167
- * @ param state check state
168
- * @ see itemCheckState()
169
- * @ see toggleItemCheckState()
166
+ * \ param index item index
167
+ * \ param state check state
168
+ * \ see itemCheckState()
169
+ * \ see toggleItemCheckState()
170
170
*/
171
171
void setItemCheckState ( int index, Qt::CheckState state );
172
172
173
173
/* * Toggles the item check state
174
- * @ param index item index
175
- * @ see itemCheckState()
176
- * @ see setItemCheckState()
174
+ * \ param index item index
175
+ * \ see itemCheckState()
176
+ * \ see setItemCheckState()
177
177
*/
178
178
void toggleItemCheckState ( int index );
179
179
@@ -195,8 +195,8 @@ class GUI_EXPORT QgsCheckableComboBox : public QComboBox
195
195
public slots:
196
196
197
197
/* * Set items which should be checked/selected.
198
- * @ param items items to select
199
- * @ see checkedItems()
198
+ * \ param items items to select
199
+ * \ see checkedItems()
200
200
*/
201
201
void setCheckedItems ( const QStringList &items );
202
202
0 commit comments