summaryrefslogtreecommitdiffstats
path: root/python/pyqt/sip/qt/qlistview.sip
blob: e2b8f18d4099592a1ef51ddd02ce2f3e338e7653 (plain)
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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
// This is the SIP interface definition for QListView, QListViewItem,
// QCheckListItem and QListViewItemIterator.
//
// Copyright (c) 2007
// 	Riverbank Computing Limited <info@riverbankcomputing.co.uk>
// 
// This file is part of PyQt.
// 
// This copy of PyQt is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the Free
// Software Foundation; either version 2, or (at your option) any later
// version.
// 
// PyQt is supplied in the hope that it will be useful, but WITHOUT ANY
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
// FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
// details.
// 
// You should have received a copy of the GNU General Public License along with
// PyQt; see the file LICENSE.  If not, write to the Free Software Foundation,
// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.


%ExportedDoc
<Sect2><Title>QListView</Title>
<Para>
<Literal>QListView</Literal> is fully implemented.
</Para>
<Para>
Note that to remove a child <Literal>QListViewItem</Literal> you must first
call <Literal>takeItem()</Literal> and then <Literal>del()</Literal>.
</Para>
</Sect2>

<Sect2><Title>QListViewItem</Title>
<Para>
<Literal>QListViewItem</Literal> is fully implemented.
</Para>
<Para>
Note that to remove a child <Literal>QListViewItem</Literal> you must first
call <Literal>takeItem()</Literal> and then <Literal>del()</Literal>.
</Para>
</Sect2>

<Sect2><Title>QCheckListItem</Title>
<Para>
<Literal>QCheckListItem</Literal> is fully implemented.
</Para>
</Sect2>

<Sect2><Title>QListViewItemIterator (Qt v2+)</Title>
<Para>
<Literal>QListViewItemIterator</Literal> is fully implemented.
</Para>
</Sect2>
%End


%If (- Qt_2_00)

class QListViewItem
{
%TypeHeaderCode
#include <qlistview.h>
%End

public:
	QListViewItem(QListView * /TransferThis/);
	QListViewItem(QListViewItem * /TransferThis/);
	QListViewItem(QListView * /TransferThis/,QListViewItem *);
	QListViewItem(QListViewItem * /TransferThis/,QListViewItem *);

	QListViewItem(QListView * /TransferThis/,
		const char *,const char * = 0,
		const char * = 0,const char * = 0,
		const char * = 0,const char * = 0,
		const char * = 0,const char * = 0);

	QListViewItem(QListViewItem * /TransferThis/,
		const char *,const char * = 0,
		const char * = 0,const char * = 0,
		const char * = 0,const char * = 0,
		const char * = 0,const char * = 0);

	QListViewItem(QListView * /TransferThis/,QListViewItem *,
		const char *,const char * = 0,
		const char * = 0,const char * = 0,
		const char * = 0,const char * = 0,
		const char * = 0,const char * = 0);

	QListViewItem(QListViewItem * /TransferThis/,QListViewItem *,
		const char *,const char * = 0,
		const char * = 0,const char * = 0,
		const char * = 0,const char * = 0,
		const char * = 0,const char * = 0);

	virtual void insertItem(QListViewItem * /Transfer/);
	virtual void removeItem(QListViewItem * /TransferBack/);
	int height() const;
	virtual void invalidateHeight();
	int totalHeight() const;
	virtual int width(const QFontMetrics &,const QListView *,int) const;
	void widthChanged(int = -1) const;
	int depth() const;
	virtual void setText(int,const char *);
	virtual const char *text(int) const;
	virtual void setPixmap(int,const QPixmap &);
	virtual const QPixmap *pixmap(int) const;
	virtual const char *key(int,bool) const;
	virtual void sortChildItems(int,bool);
	int childCount() const;
	bool isOpen() const;
	virtual void setOpen(bool);
	virtual void setup();
	virtual void setSelected(bool);
	bool isSelected() const;
	virtual void paintCell(QPainter *,const QColorGroup &,int,int,int);
	virtual void paintBranches(QPainter *,const QColorGroup &,int,int,int,
				   GUIStyle);
	virtual void paintFocus(QPainter *,const QColorGroup &,const QRect &);
	QListViewItem *firstChild() const;
	QListViewItem *nextSibling() const;
	QListViewItem *parent() const;
	QListViewItem *itemAbove();
	QListViewItem *itemBelow();
	int itemPos() const;
	QListView *listView() const;
	virtual void setSelectable(bool);
	bool isSelectable() const;
	virtual void setExpandable(bool);
	bool isExpandable();
	void repaint() const;

protected:
	virtual void enforceSortOrder() const;
	virtual void setHeight(int);
	virtual void activate();
};

%End

%If (Qt_2_00 -)

class QListViewItem : Qt
{
%TypeHeaderCode
#include <qlistview.h>
%End

public:
	QListViewItem(QListView * /TransferThis/);
	QListViewItem(QListViewItem * /TransferThis/);
	QListViewItem(QListView * /TransferThis/,QListViewItem *);
	QListViewItem(QListViewItem * /TransferThis/,QListViewItem *);

	QListViewItem(QListView * /TransferThis/,
		QString,QString = QString::null,
		QString = QString::null,QString = QString::null,
		QString = QString::null,QString = QString::null,
		QString = QString::null,QString = QString::null);

	QListViewItem(QListViewItem * /TransferThis/,
		QString,QString = QString::null,
		QString = QString::null,QString = QString::null,
		QString = QString::null,QString = QString::null,
		QString = QString::null,QString = QString::null);

	QListViewItem(QListView * /TransferThis/,QListViewItem *,
		QString,QString = QString::null,
		QString = QString::null,QString = QString::null,
		QString = QString::null,QString = QString::null,
		QString = QString::null,QString = QString::null);

	QListViewItem(QListViewItem * /TransferThis/,QListViewItem *,
		QString,QString = QString::null,
		QString = QString::null,QString = QString::null,
		QString = QString::null,QString = QString::null,
		QString = QString::null,QString = QString::null);

	virtual void insertItem(QListViewItem * /Transfer/);
	virtual void takeItem(QListViewItem * /TransferBack/);

	int height() const;
	virtual void invalidateHeight();
	int totalHeight() const;
	virtual int width(const QFontMetrics &,const QListView *,int) const;
	void widthChanged(int = -1) const;
	int depth() const;

	virtual void setText(int,const QString &);
	virtual QString text(int) const;

	virtual void setPixmap(int,const QPixmap &);
	virtual const QPixmap *pixmap(int) const;

	virtual QString key(int,bool) const;
%If (Qt_3_0_0 -)
	virtual int compare(QListViewItem *,int,bool) const;
%End
	virtual void sortChildItems(int,bool);

	int childCount() const;

	bool isOpen() const;
	virtual void setOpen(bool);
	virtual void setup();

	virtual void setSelected(bool);
	bool isSelected() const;

	virtual void paintCell(QPainter *,const QColorGroup &,int,int,int);
%If (- Qt_3_0_0)
	virtual void paintBranches(QPainter *,const QColorGroup &,int,int,int,
				   GUIStyle);
%End
%If (Qt_3_0_0 -)
	virtual void paintBranches(QPainter *,const QColorGroup &,int,int,int);
%End
	virtual void paintFocus(QPainter *,const QColorGroup &,const QRect &);

	QListViewItem *firstChild() const;
	QListViewItem *nextSibling() const;
	QListViewItem *parent() const;

	QListViewItem *itemAbove();
	QListViewItem *itemBelow();

	int itemPos() const;

	QListView *listView() const;

	virtual void setSelectable(bool);
	bool isSelectable() const;

	virtual void setExpandable(bool);
	bool isExpandable();

	void repaint() const;

%If (Qt_2_1_0 - Qt_3_0_0)
	void sort();
%End
%If (Qt_3_0_0 -)
	virtual void sort();
%End
%If (Qt_2_2_0 -)
	void moveItem(QListViewItem *);
%End

%If (Qt_3_0_0 -)
	virtual void setDragEnabled(bool);
	virtual void setDropEnabled(bool);
	bool dragEnabled() const;
	bool dropEnabled() const;
	virtual bool acceptDrop(const QMimeSource *) const;
 
	void setVisible(bool);
	bool isVisible() const;
 
	virtual void setRenameEnabled(int,bool);
	bool renameEnabled(int) const;
	virtual void startRename(int);
 
	virtual void setEnabled(bool);
	bool isEnabled() const;
 
	virtual int rtti() const;
 
	virtual void setMultiLinesEnabled(bool);
	bool multiLinesEnabled() const;
%End

protected:
	virtual void enforceSortOrder() const;
	virtual void setHeight(int);
	virtual void activate();

%If (Qt_2_1_0 -)
	bool activatedPos(QPoint &);
%End
%If (Qt_3_0_0 -)
	virtual void dropped(QDropEvent *);
	virtual void dragEntered();
	virtual void dragLeft();
	virtual void okRename(int);
	virtual void cancelRename(int);

	void ignoreDoubleClick();
%End
};

%End


class QListView : QScrollView
{
%TypeHeaderCode
#include <qlistview.h>
%End

public:
%If (Qt_2_2_0 - Qt_3_0_0)
	QListView(QWidget * /TransferThis/,const char *,WFlags);
%End
%If (- Qt_3_0_0)
	QListView(QWidget * /TransferThis/ = 0,const char * = 0);
%End
%If (Qt_3_0_0 -)
	QListView(QWidget * /TransferThis/ = 0,const char * = 0,WFlags = 0);
%End

	int treeStepSize() const;
	virtual void setTreeStepSize(int);

	virtual void insertItem(QListViewItem * /Transfer/);
%If (Qt_2_00 -)
	virtual void takeItem(QListViewItem * /TransferBack/);
%End

%If (- Qt_3_0_0)
	virtual void clear();
%End
	QHeader *header() const;

%If (- Qt_2_00)
	virtual int addColumn(const char *,int = -1);
	virtual void setColumnText(int,const char *);
	const char *columnText(int) const;
%End
%If (Qt_2_00 -)
	virtual int addColumn(const QString &,int = -1);
	virtual int addColumn(const QIconSet &,const QString &,int = -1);
%If (Qt_2_1_0 -)
	void removeColumn(int);
%End
	virtual void setColumnText(int,const QString &);
	virtual void setColumnText(int,const QIconSet &,const QString &);
	QString columnText(int) const;
%End
	virtual void setColumnWidth(int,int);
	int columnWidth(int) const;

	enum WidthMode
	{
		Manual,
		Maximum
	};

	virtual void setColumnWidthMode(int,WidthMode);
	WidthMode columnWidthMode(int) const;
%If (Qt_2_1_0 -)
	int columns() const;
%End

	virtual void setColumnAlignment(int,int);
	int columnAlignment(int) const;

	void show();

	QListViewItem *itemAt(const QPoint &) const;
	QRect itemRect(const QListViewItem *) const;
	int itemPos(const QListViewItem *);

	void ensureItemVisible(const QListViewItem *);

	void repaintItem(const QListViewItem *) const;

	virtual void setMultiSelection(bool);
	bool isMultiSelection() const;

%If (Qt_2_1_0 -)
	enum SelectionMode {
		Single,
		Multi,
		Extended,
		NoSelection
	};

	void setSelectionMode(SelectionMode);
	SelectionMode selectionMode() const;
%End

%If (Qt_2_1_0 -)
	virtual void clearSelection();
%End
	virtual void setSelected(QListViewItem *,bool);
%If (Qt_3_2_0 -)
	void setSelectionAnchor(QListViewItem *);
%End
	bool isSelected(QListViewItem *) const;
%If (Qt_2_1_0 -)
	QListViewItem *selectedItem() const;
%End
	virtual void setOpen(QListViewItem *,bool);
	bool isOpen(QListViewItem *) const;

	virtual void setCurrentItem(QListViewItem *);
	QListViewItem *currentItem() const;

	QListViewItem *firstChild() const;
%If (Qt_3_0_0 -)
	QListViewItem *lastItem() const;
%End

	int childCount() const;

	virtual void setAllColumnsShowFocus(bool);
	bool allColumnsShowFocus() const;

	virtual void setItemMargin(int);
	int itemMargin() const;

	virtual void setRootIsDecorated(bool);
	bool rootIsDecorated() const;

	virtual void setSorting(int,bool = 1);
%If (Qt_3_1_0 -)
	int sortColumn() const;
%End
%If (Qt_3_2_0 -)
	void setSortColumn(int);
	SortOrder sortOrder() const;
	void setSortOrder(SortOrder);
%End
%If (Qt_3_0_0 -)
	virtual void sort();
%End
%If (Qt_2_1_0 - Qt_3_0_0)
	void sort();
%End

%If (- Qt_2_00)
	void setStyle(GUIStyle);
	void setFont(const QFont &);
	void setPalette(const QPalette &);
%End
%If (Qt_2_00 -)
	virtual void setFont(const QFont &);
	virtual void setPalette(const QPalette &);
%End

	bool eventFilter(QObject *,QEvent *);

	QSize sizeHint() const;
%If (Qt_2_00 -)
	QSize minimumSizeHint() const;
%End

%If (Qt_2_1_0 -)
	void setShowSortIndicator(bool);
	bool showSortIndicator() const;
%End
%If (Qt_3_0_0 -)
	virtual void setShowToolTips(bool);
	bool showToolTips() const;
 
	enum ResizeMode {
		NoColumn,
		AllColumns,
		LastColumn
	};

	virtual void setResizeMode(ResizeMode);
	ResizeMode resizeMode() const;
 
	QListViewItem *findItem(const QString &,int,
				ComparisonFlags = ExactMatch | CaseSensitive) const;
 
	enum RenameAction {
		Accept,
		Reject
	};

	virtual void setDefaultRenameAction(RenameAction);
	RenameAction defaultRenameAction() const;
	bool isRenaming() const;
%End

%If (Qt_3_2_0 -)
	void hideColumn(int);
%End

public slots:
%If (Qt_3_0_0 -)
	virtual void clear();
%End
%If (Qt_2_1_0 -)
	void invertSelection();
	void selectAll(bool);
	void setContentsPos(int,int);
%End
	void triggerUpdate();
%If (Qt_3_2_0 -)
	void adjustColumn(int);
%End

signals:
	void selectionChanged();
	void selectionChanged(QListViewItem *);
	void currentChanged(QListViewItem *);
%If (Qt_2_1_0 -)
	void clicked(QListViewItem *);
	void clicked(QListViewItem *,const QPoint &,int);
	void pressed(QListViewItem *);
	void pressed(QListViewItem *,const QPoint &,int);
%End

	void doubleClicked(QListViewItem *);
%If (Qt_3_2_0 -)
	void doubleClicked(QListViewItem *,const QPoint &,int);
%End
	void returnPressed(QListViewItem *);
%If (Qt_3_0_0 -)
	void spacePressed(QListViewItem *);
%End
	void rightButtonClicked(QListViewItem *,const QPoint &,int);
	void rightButtonPressed(QListViewItem *,const QPoint &,int);
%If (Qt_2_1_0 -)
	void mouseButtonPressed(int,QListViewItem *,const QPoint &,int);
	void mouseButtonClicked(int,QListViewItem *,const QPoint &,int);
%End

%If (Qt_3_0_0 -)
	void contextMenuRequested(QListViewItem *,const QPoint &,int);
%End

%If (Qt_2_1_0 -)
	void onItem(QListViewItem *);
	void onViewport();

	void expanded(QListViewItem *);
	void collapsed(QListViewItem *);
%End
%If (Qt_3_0_0 -)
	void dropped(QDropEvent *);
	void itemRenamed(QListViewItem *,int,const QString &);
	void itemRenamed(QListViewItem *,int);
%End

protected:
%If (- Qt_2_00)
	void mousePressEvent(QMouseEvent *);
	void mouseReleaseEvent(QMouseEvent *);
	void mouseMoveEvent(QMouseEvent *);
	void mouseDoubleClickEvent(QMouseEvent *);
%End
%If (Qt_2_00 -)
	void contentsMousePressEvent(QMouseEvent *);
	void contentsMouseReleaseEvent(QMouseEvent *);
	void contentsMouseMoveEvent(QMouseEvent *);
	void contentsMouseDoubleClickEvent(QMouseEvent *);
%End
%If (Qt_3_0_0 -)
	void contentsContextMenuEvent(QContextMenuEvent *);
	void contentsDragEnterEvent(QDragEnterEvent *);
	void contentsDragMoveEvent(QDragMoveEvent *);
	void contentsDragLeaveEvent(QDragLeaveEvent *);
	void contentsDropEvent(QDropEvent *);
	virtual QDragObject *dragObject();
	virtual void startDrag();
%End

	void focusInEvent(QFocusEvent *);
	void focusOutEvent(QFocusEvent *);

	void keyPressEvent(QKeyEvent *);

	void resizeEvent(QResizeEvent *);
%If (Qt_3_0_0 -)
	void viewportResizeEvent(QResizeEvent *);
%End

%If (Qt_2_00 -)
	void showEvent(QShowEvent *);
%End

	void drawContentsOffset(QPainter *,int,int,int,int,int,int);

	virtual void paintEmptyArea(QPainter *,const QRect &);
%If (Qt_2_00 -)
	void styleChange(QStyle &);
%End
%If (- Qt_3_0_0)
	void enabledChange(bool);
%End
%If (Qt_3_0_0 -)
	void windowActivationChange(bool);
%End

protected slots:
	void updateContents();
%If (Qt_2_00 -)
	void doAutoScroll();
%End

private:
%If (Qt_2_1_0 -)
	QListView(const QWidget &);
%End
};


class QCheckListItem : QListViewItem
{
%TypeHeaderCode
#include <qlistview.h>
%End

public:
	enum Type {
		RadioButton,
		CheckBox,
		Controller,
%If (Qt_3_2_0 -)
		RadioButtonController,
		CheckBoxController,
%End
	};

%If (Qt_3_2_0 -)
	enum ToggleState {
		Off,
		NoChange,
		On
	};
%End

%If (Qt_3_2_0 -)
	QCheckListItem(QCheckListItem * /TransferThis/,const QString &,
		       Type = RadioButtonController);
	QCheckListItem(QCheckListItem * /TransferThis/,QListViewItem *,
		       const QString &,Type = RadioButtonController);
	QCheckListItem(QListViewItem * /TransferThis/,const QString &,
		       Type = RadioButtonController);
	QCheckListItem(QListViewItem * /TransferThis/,QListViewItem *,
		       const QString &,Type = RadioButtonController);
	QCheckListItem(QListView * /TransferThis/,const QString &,
		       Type = RadioButtonController);
	QCheckListItem(QListView * /TransferThis/,QListViewItem *,
		       const QString &,Type = RadioButtonController);
%End
%If (Qt_2_00 - Qt_3_2_0)
	QCheckListItem(QCheckListItem * /TransferThis/,const QString &,
		       Type = Controller);
%If (Qt_3_1_0 -)
	QCheckListItem(QCheckListItem * /TransferThis/,QListViewItem *,
		       const QString &,Type = Controller);
%End
	QCheckListItem(QListViewItem * /TransferThis/,const QString &,
		       Type = Controller);
%If (Qt_3_1_0 -)
	QCheckListItem(QListViewItem * /TransferThis/,QListViewItem *,
		       const QString &,Type = Controller);
%End
	QCheckListItem(QListView * /TransferThis/,const QString &,
		       Type = Controller);
%If (Qt_3_1_0 -)
	QCheckListItem(QListView * /TransferThis/,QListViewItem *,
		       const QString &,Type = Controller);
%End
%End
%If (Qt_2_00 -)
	QCheckListItem(QListViewItem * /TransferThis/,const QString &,
		       const QPixmap &);
	QCheckListItem(QListView * /TransferThis/,const QString &,
		       const QPixmap &);
%End
%If (- Qt_2_00)
	QCheckListItem(QCheckListItem * /TransferThis/,const char *,
		       Type = Controller);
	QCheckListItem(QListView * /TransferThis/,const char *,
		       Type = Controller);
	QCheckListItem(QListViewItem * /TransferThis/,const char *,
		       const QPixmap &);
	QCheckListItem(QListView * /TransferThis/,const char *,
		       const QPixmap &);
%End

	void paintCell(QPainter *,const QColorGroup &,int,int,int);
%If (Qt_2_00 -)
	virtual void paintFocus(QPainter *,const QColorGroup &,const QRect &);
%End
	int width(const QFontMetrics &,const QListView *,int) const;
	void setup();

%If (- Qt_2_00)
	void setOn(bool);
%End
%If (Qt_2_00 -)
	virtual void setOn(bool);
%End
	bool isOn() const;
	Type type() const;
%If (- Qt_2_00)
	const char *text() const;
	const char *text(int) const;
%End
%If (Qt_2_00 -)
	QString text() const;
	QString text(int) const;
%End

%If (Qt_3_2_0 -)
	void setTristate(bool);
	bool isTristate() const;
	ToggleState state() const;
	void setState(ToggleState);
%End

%If (Qt_3_0_0 -)
	int rtti() const;
%End

protected:
%If (- Qt_3_0_0)
	void paintBranches(QPainter *,const QColorGroup &,int,int,int,GUIStyle);
%End
	void activate();
	void turnOffChild();
	virtual void stateChange(bool);
};


%If (Qt_2_00 -)

class QListViewItemIterator
{
%TypeHeaderCode
#include <qlistview.h>
%End

public:
%If (Qt_3_2_0 -)
	enum IteratorFlag {
		Visible,
		Invisible,
		Selected,
		Unselected,
		Selectable,
		NotSelectable,
		DragEnabled,
		DragDisabled,
		DropEnabled,
		DropDisabled,
		Expandable,
		NotExpandable,
		Checked,
		NotChecked
	};
%End

	QListViewItemIterator();
	QListViewItemIterator(QListViewItem *);
%If (Qt_3_2_0 -)
	QListViewItemIterator(QListViewItem *,int);
%End

	QListViewItemIterator(const QListViewItemIterator &);
	QListViewItemIterator(QListView *);
%If (Qt_3_2_0 -)
	QListViewItemIterator(QListView *,int);
%End

	QListViewItemIterator &operator+=(int);
	QListViewItemIterator &operator-=(int);

	QListViewItem *current() const;
};

%End