summaryrefslogtreecommitdiffstats
path: root/arts/builder/menumaker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'arts/builder/menumaker.cpp')
-rw-r--r--arts/builder/menumaker.cpp22
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)