diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:43:15 +0000 |
commit | e654398e46e37abf457b2b1122ab898d2c51c49f (patch) | |
tree | d39ee6440f3c3663c3ead84a2d4cc2d034667e96 /arts/builder/menumaker.cpp | |
parent | e4f29b18e19394b9352f52a6c0d0d0e3932cf511 (diff) | |
download | tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.tar.gz tdemultimedia-e654398e46e37abf457b2b1122ab898d2c51c49f.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdemultimedia@1157644 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'arts/builder/menumaker.cpp')
-rw-r--r-- | arts/builder/menumaker.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/arts/builder/menumaker.cpp b/arts/builder/menumaker.cpp index 54e32e2b..2aed8401 100644 --- a/arts/builder/menumaker.cpp +++ b/arts/builder/menumaker.cpp @@ -8,9 +8,9 @@ using namespace std; MenuEntry::MenuEntry(MenuMaker *menumaker, KActionMenu *parent, const char *text) : menumaker(menumaker), text(text) { - action = new KAction(QString::fromLocal8Bit(text)); + action = new KAction(TQString::fromLocal8Bit(text)); parent->insert(action); - connect(action, SIGNAL(activated()), this, SLOT(activated())); + connect(action, TQT_SIGNAL(activated()), this, TQT_SLOT(activated())); } void MenuEntry::activated() @@ -18,7 +18,7 @@ void MenuEntry::activated() menumaker->menuActivated(text); } -MenuCategory::MenuCategory(const QString& name, const char *prefix, KActionMenu *menu) +MenuCategory::MenuCategory(const TQString& name, const char *prefix, KActionMenu *menu) { _menu = menu; _name = name; @@ -26,7 +26,7 @@ MenuCategory::MenuCategory(const QString& name, const char *prefix, KActionMenu addPrefix(prefix); } -QString MenuCategory::name() +TQString MenuCategory::name() { return _name; } @@ -76,7 +76,7 @@ MenuMaker::MenuMaker(KActionMenu *root) // addCategory("&Synthesis", "Synth_"); // addCategory("&Synthesis/&Waveforms", "Synth_WAVE"); -void MenuMaker::addCategory(const QString& name, const char *prefix) +void MenuMaker::addCategory(const TQString& name, const char *prefix) { MenuCategory *mc = 0,*pc = 0; @@ -93,7 +93,7 @@ void MenuMaker::addCategory(const QString& name, const char *prefix) KActionMenu *newMenu = new KActionMenu(catname(name)); pc->menu()->insert(newMenu); /* 000 */ - /*connect(newMenu,SIGNAL(activated(int)),this,SLOT(menuactivated(int))); + /*connect(newMenu,TQT_SIGNAL(activated(int)),this,TQT_SLOT(menuactivated(int))); pc->menu()->insertItem(catname(name).c_str(), newMenu, CAT_MAGIC_ID);*/ arts_debug("inserting a menu called '%s' in the parent menu '%s'", catname(name).local8Bit().data(),pc->name().local8Bit().data()); @@ -106,7 +106,7 @@ void MenuMaker::addCategory(const QString& name, const char *prefix) } } -MenuCategory *MenuMaker::lookupCategoryByName(const QString& name) +MenuCategory *MenuMaker::lookupCategoryByName(const TQString& name) { MenuCategory *mc = 0; list<MenuCategory *>::iterator i; @@ -137,16 +137,16 @@ void MenuMaker::addItem(const char *name, int index) //mc->menu()->insert(new KAction(name)); // index?? new MenuEntry(this, mc->menu(), name); /* - KAction *action = new KAction(QString(name)); + KAction *action = new KAction(TQString(name)); mc->menu()->insert(action); */ //action->plug(mc->menu()); //mc->menu()->insert(new KAction(name)); // index?? } -QString MenuMaker::basename(const QString& name) +TQString MenuMaker::basename(const TQString& name) { - QString result = ""; + TQString result = ""; int i = name.findRev('/'); if(i != -1) @@ -157,7 +157,7 @@ QString MenuMaker::basename(const QString& name) return result; } -QString MenuMaker::catname(const QString& name) +TQString MenuMaker::catname(const TQString& name) { int i = name.findRev('/'); if(i >= 0) |