[PyKDE] [patch] qtoolbar

Phil Thompson phil at river-bank.demon.co.uk
Thu Jun 27 17:05:00 BST 2002


Andreas Kloeckner wrote:

> 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
> 
> 
> ------------------------------------------------------------------------
> 
> --- /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);


This part of the patch is correct.


> -	QToolBar(const QString &,QMainWindow *,QWidget * /TransferThis/,
> +	QToolBar(const QString &,QMainWindow * /TransferThis/,QWidget * /TransferThis/,
>  		 bool = 0,const char * = 0,WFlags = 0);


This part of the patch is incorrect.


Phil




More information about the PyQt mailing list