[PyKDE] setSelectionAnchor in wrong class?
Anders Quist
quest at strakt.com
Thu Aug 17 08:51:09 BST 2006
It seems to me that in current distribution of pyqt,
setSelectionAnchor is defined as a method of QListViewItem, rather
than on QListView, which is what Qt docs indicate. I suggest yon
patch:
--- sip/qt/qlistview.sip 2006-03-25 01:08:56.000000000 +0100
+++ sip/qt/qlistview.sip.new 2006-07-13 14:55:17.000000000 +0200
@@ -106,9 +106,6 @@
virtual void setOpen(bool);
virtual void setup();
virtual void setSelected(bool);
-%If (Qt_3_2_0 -)
- void setSelectionAnchor(QListViewItem *);
-%End
bool isSelected() const;
virtual void paintCell(QPainter *,const QColorGroup &,int,int,int);
virtual void paintBranches(QPainter *,const QColorGroup &,int,int,int,
@@ -384,6 +381,9 @@
%If (Qt_2_1_0 -)
QListViewItem *selectedItem() const;
%End
+%If (Qt_3_2_0 -)
+ void setSelectionAnchor(QListViewItem *);
+%End
virtual void setOpen(QListViewItem *,bool);
bool isOpen(QListViewItem *) const;
--
Anders Qvist, AB Strakt
More information about the PyQt
mailing list