File: qgstreewidgetitem.sip.in

package info (click to toggle)
qgis 3.40.10%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,183,672 kB
  • sloc: cpp: 1,595,771; python: 372,544; xml: 23,474; sh: 3,761; perl: 3,664; ansic: 2,257; sql: 2,137; yacc: 1,068; lex: 577; javascript: 540; lisp: 411; makefile: 161
file content (191 lines) | stat: -rw-r--r-- 5,835 bytes parent folder | download | duplicates (12)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/gui/qgstreewidgetitem.h                                          *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/





class QgsTreeWidgetItem : QTreeWidgetItem
{
%Docstring(signature="appended")
QTreeWidgetItem subclass with custom handling for item sorting.

:py:class:`QgsTreeWidgetItem` allows for items to be sorted using a
specified user role, and also correctly handles sorting numeric or mixed
text and numeric values.
%End

%TypeHeaderCode
#include "qgstreewidgetitem.h"
%End
  public:
    explicit QgsTreeWidgetItem( QTreeWidget *view /TransferThis/, int type = Type );
%Docstring
Constructor for QgsTreeWidgetItem

:param view: parent QTreeWidget view
:param type: item type
%End

    explicit QgsTreeWidgetItem( int type = Type );
%Docstring
Constructor for QgsTreeWidgetItem

:param type: item type
%End

    QgsTreeWidgetItem( const QStringList &strings, int type = Type );
%Docstring
Constructor for QgsTreeWidgetItem

:param strings: list of strings containing text for each column in the
                item
:param type: item type
%End

    QgsTreeWidgetItem( QTreeWidget *view /TransferThis/, const QStringList &strings, int type = Type );
%Docstring
Constructor for QgsTreeWidgetItem

:param view: parent QTreeWidget view
:param strings: list of strings containing text for each column in the
                item
:param type: item type
%End

    QgsTreeWidgetItem( QTreeWidget *view /TransferThis/, QTreeWidgetItem *after, int type = Type );
%Docstring
Constructor for QgsTreeWidgetItem

:param view: parent QTreeWidget view
:param after: QTreeWidgetItem to place insert item after in the view
:param type: item type
%End

    explicit QgsTreeWidgetItem( QTreeWidgetItem *parent /TransferThis/, int type = Type );
%Docstring
Constructor for QgsTreeWidgetItem

:param parent: QTreeWidgetItem item
:param type: item type
%End

    QgsTreeWidgetItem( QTreeWidgetItem *parent /TransferThis/, const QStringList &strings, int type = Type );
%Docstring
Constructor for QgsTreeWidgetItem

:param parent: QTreeWidgetItem item
:param strings: list of strings containing text for each column in the
                item
:param type: item type
%End

    QgsTreeWidgetItem( QTreeWidgetItem *parent /TransferThis/, QTreeWidgetItem *after, int type = Type );
%Docstring
Constructor for QgsTreeWidgetItem

:param parent: QTreeWidgetItem item
:param after: QTreeWidgetItem to place insert item after in the view
:param type: item type
%End

    void setSortData( int column, const QVariant &value );
%Docstring
Sets the custom sort data for a specified column. If set, this value
will be used when sorting the item instead of the item's display text.
If not set, the item's display text will be used when sorting.

:param column: column index
:param value: sort value

.. seealso:: :py:func:`sortData`
%End

    QVariant sortData( int column ) const;
%Docstring
Returns the custom sort data for a specified column. If set, this value
will be used when sorting the item instead of the item's display text.
If not set, the item's display text will be used when sorting.

.. seealso:: :py:func:`setSortData`
%End

    void setAlwaysOnTopPriority( int priority );
%Docstring
Sets a the item to display always on top of other items in the widget,
regardless of the sort column and sort or display value for the item.

:param priority: priority for sorting always on top items. Items with a
                 lower priority will be placed above items with a higher
                 priority.

.. seealso:: :py:func:`alwaysOnTopPriority`
%End

    int alwaysOnTopPriority() const;
%Docstring
Returns the item's priority when it is set to show always on top. Items
with a lower priority will be placed above items with a higher priority.

:return: priority, or -1 if item is not set to show always on top

.. seealso:: :py:func:`setAlwaysOnTopPriority`
%End

    virtual bool operator<( const QTreeWidgetItem &other ) const;


    bool operator>=( const QTreeWidgetItem &other ) const;

};

class QgsTreeWidgetItemObject : QObject, QgsTreeWidgetItem
{
%Docstring(signature="appended")
Custom :py:class:`QgsTreeWidgetItem` with extra signals when item is
edited.
%End

%TypeHeaderCode
#include "qgstreewidgetitem.h"
%End
  public:
    explicit QgsTreeWidgetItemObject( int type = Type );
%Docstring
Constructor for QgsTreeWidgetItemObject

:param type: item type
%End

    explicit QgsTreeWidgetItemObject( QTreeWidget *parent /TransferThis/, int type = Type );
%Docstring
Constructs a tree widget item of the specified type and appends it to
the items in the given parent.
%End

    virtual void setData( int column, int role, const QVariant &value );

%Docstring
Sets the value for the item's column and role to the given value.
%End

  signals:
    void itemEdited( QTreeWidgetItem *item, int column );
%Docstring
Emitted when the contents of the column in the specified item has been
edited by the user.
%End
};

/************************************************************************
 * This file has been generated automatically from                      *
 *                                                                      *
 * src/gui/qgstreewidgetitem.h                                          *
 *                                                                      *
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 ************************************************************************/