diff options
Diffstat (limited to 'knights/thinbuttons.h')
-rw-r--r-- | knights/thinbuttons.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/knights/thinbuttons.h b/knights/thinbuttons.h index 3171189..d933fb7 100644 --- a/knights/thinbuttons.h +++ b/knights/thinbuttons.h @@ -19,8 +19,8 @@ #define THINBUTTONS_H #include <kpopupmenu.h> -#include <qframe.h> -#include <qbutton.h> +#include <tqframe.h> +#include <tqbutton.h> #include "definitions.h" #include "resource.h" @@ -29,24 +29,25 @@ */ struct Buttons { - QButton *button; + TQButton *button; int ID; }; -class thinbuttons : public QFrame +class thinbuttons : public TQFrame { Q_OBJECT + TQ_OBJECT public: - thinbuttons(QWidget *parent=0, const char *name=0, resource *Rsrc=0); + thinbuttons(TQWidget *tqparent=0, const char *name=0, resource *Rsrc=0); ~thinbuttons(); - void mousePressEvent( QMouseEvent *event ); + void mousePressEvent( TQMouseEvent *event ); void setButton( int id ); - QButton* find( int id ); - QButton* create( int id ); - void remove( QButton* button ); + TQButton* tqfind( int id ); + TQButton* create( int id ); + void remove( TQButton* button ); void remove( const int &id ); void resize( const int Width ); - int id( QButton * ); + int id( TQButton * ); signals: void leftClick( int id ); @@ -58,12 +59,12 @@ class thinbuttons : public QFrame void menuClicked( int item ); protected: - void childEvent( QChildEvent * ); + void childEvent( TQChildEvent * ); private: resource *Resource; KPopupMenu *matchMenu; - QList<Buttons> buttons; + TQList<Buttons> buttons; int buttWidth; int rightClickID; }; |