diff options
Diffstat (limited to 'arts/builder/menumaker.cpp')
-rw-r--r-- | arts/builder/menumaker.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/arts/builder/menumaker.cpp b/arts/builder/menumaker.cpp index 2aed8401..8045091b 100644 --- a/arts/builder/menumaker.cpp +++ b/arts/builder/menumaker.cpp @@ -5,10 +5,10 @@ using namespace std; -MenuEntry::MenuEntry(MenuMaker *menumaker, KActionMenu *parent, const char *text) +MenuEntry::MenuEntry(MenuMaker *menumaker, TDEActionMenu *parent, const char *text) : menumaker(menumaker), text(text) { - action = new KAction(TQString::fromLocal8Bit(text)); + action = new TDEAction(TQString::fromLocal8Bit(text)); parent->insert(action); connect(action, TQT_SIGNAL(activated()), this, TQT_SLOT(activated())); } @@ -18,7 +18,7 @@ void MenuEntry::activated() menumaker->menuActivated(text); } -MenuCategory::MenuCategory(const TQString& name, const char *prefix, KActionMenu *menu) +MenuCategory::MenuCategory(const TQString& name, const char *prefix, TDEActionMenu *menu) { _menu = menu; _name = name; @@ -60,12 +60,12 @@ bool MenuCategory::matches(const char *item) return false; } -KActionMenu *MenuCategory::menu() +TDEActionMenu *MenuCategory::menu() { return _menu; } -MenuMaker::MenuMaker(KActionMenu *root) +MenuMaker::MenuMaker(TDEActionMenu *root) { categories.push_back(new MenuCategory("","",root)); } @@ -90,7 +90,7 @@ void MenuMaker::addCategory(const TQString& name, const char *prefix) pc = lookupCategoryByName(basename(name)); if(pc) { - KActionMenu *newMenu = new KActionMenu(catname(name)); + TDEActionMenu *newMenu = new TDEActionMenu(catname(name)); pc->menu()->insert(newMenu); /* 000 */ /*connect(newMenu,TQT_SIGNAL(activated(int)),this,TQT_SLOT(menuactivated(int))); @@ -134,14 +134,14 @@ void MenuMaker::addItem(const char *name, int index) if((*i)->catchall()) mc = (*i); } //mc->menu()->insertItem(name,index); 000 - //mc->menu()->insert(new KAction(name)); // index?? + //mc->menu()->insert(new TDEAction(name)); // index?? new MenuEntry(this, mc->menu(), name); /* - KAction *action = new KAction(TQString(name)); + TDEAction *action = new TDEAction(TQString(name)); mc->menu()->insert(action); */ //action->plug(mc->menu()); - //mc->menu()->insert(new KAction(name)); // index?? + //mc->menu()->insert(new TDEAction(name)); // index?? } TQString MenuMaker::basename(const TQString& name) @@ -172,7 +172,7 @@ void MenuMaker::clear() for(i=categories.begin();i != categories.end();++i) { /* 000 - KActionMenu *m = (*i)->menu(); + TDEActionMenu *m = (*i)->menu(); unsigned int k; k = 0; |