Hello.

This is a small patch fixing setItemDelegateForColumn and 
setItemDelegateForColumn.

I can't test it (my build is broken, I got a "QWidget: Must construct a 
QApplication before a QPaintDevice"), but this patch makes those currently 
broken functions like the similar, but working setItemDelegate.

As a workaround, keeping around a reference of a delegate (so the C++ object 
isn't destroyed along the Python one) the functions work as intended.

Best regards.

-- 
Julio César Gázquez - Ingeniero en Sistemas
Igneo Soluciones
Redes - Asesoramiento - Desarrollos y Sistemas
www.igneosoluciones.com.ar - Tel: (341)-155-705517
diff -urwbB PyQt-x11-gpl-4.7.3/sip/QtGui/qabstractitemview.sip PyQt-x11-gpl-4.7.3-mine/sip/QtGui/qabstractitemview.sip
--- PyQt-x11-gpl-4.7.3/sip/QtGui/qabstractitemview.sip	2010-04-16 07:32:08.000000000 -0300
+++ PyQt-x11-gpl-4.7.3-mine/sip/QtGui/qabstractitemview.sip	2010-05-18 08:50:56.000000000 -0300
@@ -309,13 +309,13 @@
     QAbstractItemView::DragDropMode dragDropMode() const;
 %End
 %If (Qt_4_2_0 -)
-    void setItemDelegateForRow(int, QAbstractItemDelegate *);
+    void setItemDelegateForRow(int, QAbstractItemDelegate * /KeepReference/);
 %End
 %If (Qt_4_2_0 -)
     QAbstractItemDelegate *itemDelegateForRow(int) const;
 %End
 %If (Qt_4_2_0 -)
-    void setItemDelegateForColumn(int, QAbstractItemDelegate *);
+    void setItemDelegateForColumn(int, QAbstractItemDelegate * /KeepReference/);
 %End
 %If (Qt_4_2_0 -)
     QAbstractItemDelegate *itemDelegateForColumn(int) const;
_______________________________________________
PyQt mailing list    [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt

Reply via email to