[PyKDE] [patch] qtoolbar

Andreas Kloeckner kloeckner at rtna.daimlerchrysler.com
Tue Jun 25 19:47:00 BST 2002


hi all,

  two of the constructors for qtoolbar are misdeclared in qtoolbar.sip,
  ownership of the toolbar is not transferred to qmainwindow as it
  should be. the attached patch fixes this.

andreas
-------------- next part --------------
--- /root/PyQt-3.3rc1-orig/sip/qtoolbar.sip	Sat Jun 22 07:26:22 2002
+++ qtoolbar.sip	Tue Jun 25 08:40:44 2002
@@ -22,9 +22,9 @@
 %End
 
 public:
-	QToolBar(const QString &,QMainWindow *,Dock = DockTop,bool = 0,
+	QToolBar(const QString &,QMainWindow * /TransferThis/,Dock = DockTop,bool = 0,
 		 const char * = 0);
-	QToolBar(const QString &,QMainWindow *,QWidget * /TransferThis/,
+	QToolBar(const QString &,QMainWindow * /TransferThis/,QWidget * /TransferThis/,
 		 bool = 0,const char * = 0,WFlags = 0);
 	QToolBar(QMainWindow * /TransferThis/ = 0,const char * = 0);
 


More information about the PyQt mailing list