diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-07-22 23:33:11 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2023-07-22 23:33:11 +0900 |
commit | 7665c8d3f798aaf287ff14a35af74d9c303cb20c (patch) | |
tree | 00fd812583eed65f80d269255e8b662c90d1ddc7 /src/menu.cpp | |
parent | 100a40e71a3f796a93675f9940c42ebe6429740e (diff) | |
download | kommando-7665c8d3f798aaf287ff14a35af74d9c303cb20c.tar.gz kommando-7665c8d3f798aaf287ff14a35af74d9c303cb20c.zip |
Raw Qt->TQt conversion using tde/scripts/conversions/qt3-tqt3/convert_existing_qt3_app_to_tq
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
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)); } |