diff options
Diffstat (limited to 'src/menu.cpp')
-rw-r--r-- | src/menu.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/menu.cpp b/src/menu.cpp index e0acc2d..66a3db6 100644 --- a/src/menu.cpp +++ b/src/menu.cpp @@ -24,8 +24,8 @@ #include "commandobutton.h" #include "configuration.h" -Menu::Menu(Menu* parentMenu, const QString& appName) - : QButtonGroup(),mParentMenu(parentMenu),mSelectedButtonNum(BUTTON_DESELECT),mAppName(appName) +Menu::Menu(Menu* parentMenu, const TQString& appName) + : TQButtonGroup(),mParentMenu(parentMenu),mSelectedButtonNum(BUTTON_DESELECT),mAppName(appName) { children.setAutoDelete(true); } @@ -34,7 +34,7 @@ Menu::~Menu() { for(int i=0;i<count();++i) { - QButton* temp = find(i); + TQButton* temp = find(i); remove(temp); delete temp; } @@ -96,7 +96,7 @@ void Menu::selectButton( int num ) } } -QButton * Menu::selectedButton( ) +TQButton * Menu::selectedButton( ) { if(mSelectedButtonNum<0){ return NULL; @@ -104,7 +104,7 @@ QButton * Menu::selectedButton( ) return find(mSelectedButtonNum); } -int Menu::insert( QButton * button, int id ) +int Menu::insert( TQButton * button, int id ) { RoundButton* rButton = static_cast<RoundButton*>(button); connect(rButton, SIGNAL(mouseIn(RoundButton*)),this,SLOT(slotMouseIn(RoundButton*))); @@ -114,16 +114,16 @@ int Menu::insert( QButton * button, int id ) children.append(static_cast<SubmenuButton*>(rButton)->subMenu()); } - return QButtonGroup::insert(button,id); + return TQButtonGroup::insert(button,id); } -int Menu::insertNoChild( QButton * button, int id ) +int Menu::insertNoChild( TQButton * button, int id ) { RoundButton* rButton = static_cast<RoundButton*>(button); connect(rButton, SIGNAL(mouseIn(RoundButton*)),this,SLOT(slotMouseIn(RoundButton*))); connect(rButton, SIGNAL(mouseOut(RoundButton*)),this,SLOT(slotMouseOut())); - return QButtonGroup::insert(button,id); + return TQButtonGroup::insert(button,id); } void Menu::slotMouseIn(RoundButton* emitter) @@ -146,7 +146,7 @@ Menu * Menu::execute( ) return 0; //Well, we shouldn't actually reach this place, as execute is only called if it is sure that a button was selected } -void Menu::selectButton( QButton * button ) +void Menu::selectButton( TQButton * button ) { selectButton(id(button)); } |