[PyKDE] Qt 2.1 changes for qtoolbutton

Pete Ware ware at cis.ohio-state.edu
Sat May 27 01:24:41 BST 2000


I'm just doing these as I run across things I'd like:

Qt 2.1 introduced new member functions to qtoolbutton:
        QToolButton(ArrowType),
        setOnIconSet(), setOffIconSet(),
        onIconSet(), offIconSet()

     new slots:
        setPopup(), popup(),
        setPopupDelay(), popupDelay(),
        setAutoRaise (), autoRaise()
--pete

diff -c PyQt-0.13pre1/sip/qtoolbutton.sip sip/qtoolbutton.sip
*** PyQt-0.13pre1/sip/qtoolbutton.sip	Wed May 24 04:34:47 2000
--- sip/qtoolbutton.sip	Fri May 26 19:04:05 2000
***************
*** 34,40 ****
--- 34,48 ----
  	QToolButton(const QIconSet &,const QString &,const QString &,
  		    SIP_RXOBJ_CON,SIP_SLOT_CON(),QToolBar * /TransferThis/,
  		    const char * = 0);
+ %If Version(QT_21x)
+         QToolButton ( ArrowType , QWidget * /TransferThis/, const char *  = 0 );
+ 	void setOnIconSet ( const QIconSet & );
+ 	void setOffIconSet ( const QIconSet & );
+ 	QIconSet onIconSet () const;
+ 	QIconSet offIconSet () const;
+ 
  %End
+ %End
  
  	QSize sizeHint() const;
  	bool usesBigPixmap() const;
***************
*** 51,58 ****
--- 59,75 ----
  	virtual void setIconSet(const QIconSet &,bool = 0);
  	QIconSet iconSet(bool = 0) const;
  	QString textLabel() const;
+ %If Version(QT_21x)
+ 	void setPopup ( QPopupMenu *  );
+ 	QPopupMenu* popup () const;
+ 	void setPopupDelay ( int  );
+ 	int popupDelay () const;
+ 	void setAutoRaise ( bool  );
+ 	bool autoRaise () const;
  %End
  
+ %End
+ 
  public slots:
  	virtual void setUsesBigPixmap(bool);
  	virtual void setUsesTextLabel(bool);




More information about the PyQt mailing list