diff options
Diffstat (limited to 'src/menu.h')
-rw-r--r-- | src/menu.h | 30 |
1 files changed, 15 insertions, 15 deletions
@@ -20,8 +20,8 @@ #ifndef MENU_H #define MENU_H -#include <qbuttongroup.h> -#include <qptrlist.h> +#include <ntqbuttongroup.h> +#include <ntqptrlist.h> #include "roundbutton.h" @@ -29,46 +29,46 @@ class RoundButton; -class Menu : public QButtonGroup +class Menu : public TQButtonGroup { Q_OBJECT public: - Menu(Menu* parentMenu=NULL, const QString& appName=""); + Menu(Menu* parentMenu=NULL, const TQString& appName=""); virtual ~Menu(); virtual Menu* parentMenu(){ return mParentMenu; } virtual void setParentMenu(Menu* menu){ mParentMenu=menu; } virtual void selectButton(int num); - virtual void selectButton(QButton* button); + virtual void selectButton(TQButton* button); virtual void showButtons(); virtual void hideButtons(); virtual void arrangeButtons(); virtual Menu* execute(); - virtual int insert ( QButton * button, int id = -1 ); + virtual int insert ( TQButton * button, int id = -1 ); //use this method for cross linking, otherway there will be problems with deletation - virtual int insertNoChild( QButton* button, int id = -1); + virtual int insertNoChild( TQButton* button, int id = -1); - void setIconPath(const QString& theValue){ mIconPath = theValue; } - QString IconPath() const{ return mIconPath; } + void setIconPath(const TQString& theValue){ mIconPath = theValue; } + TQString IconPath() const{ return mIconPath; } int selectedButtonNum() const { return mSelectedButtonNum; } - virtual QButton* selectedButton(); + virtual TQButton* selectedButton(); - void setAppName(const QString& theValue){ mAppName = theValue; } - QString appName() const { return mAppName; } + void setAppName(const TQString& theValue){ mAppName = theValue; } + TQString appName() const { return mAppName; } signals: virtual void buttonSelected(int type); protected: Menu* mParentMenu; - QString mIconPath; - QPtrList<Menu> children; + TQString mIconPath; + TQPtrList<Menu> children; int mSelectedButtonNum; - QString mAppName; + TQString mAppName; protected slots: void slotMouseIn(RoundButton* emitter); |