summaryrefslogtreecommitdiffstats
path: root/quanta/dialogs/actionconfigdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/dialogs/actionconfigdialog.cpp')
-rw-r--r--quanta/dialogs/actionconfigdialog.cpp208
1 files changed, 104 insertions, 104 deletions
diff --git a/quanta/dialogs/actionconfigdialog.cpp b/quanta/dialogs/actionconfigdialog.cpp
index 9a4cfb3d..a66f7499 100644
--- a/quanta/dialogs/actionconfigdialog.cpp
+++ b/quanta/dialogs/actionconfigdialog.cpp
@@ -13,16 +13,16 @@
***************************************************************************/
//qt includes
-#include <qbuttongroup.h>
-#include <qcheckbox.h>
-#include <qdom.h>
-#include <qfileinfo.h>
-#include <qlineedit.h>
-#include <qlistbox.h>
-#include <qmultilineedit.h>
-#include <qradiobutton.h>
-#include <qtabwidget.h>
-#include <qregexp.h>
+#include <tqbuttongroup.h>
+#include <tqcheckbox.h>
+#include <tqdom.h>
+#include <tqfileinfo.h>
+#include <tqlineedit.h>
+#include <tqlistbox.h>
+#include <tqmultilineedit.h>
+#include <tqradiobutton.h>
+#include <tqtabwidget.h>
+#include <tqregexp.h>
//kde includes
#include <kapplication.h>
@@ -50,7 +50,7 @@
#include "tagaction.h"
#include "toolbartabwidget.h"
-ActionConfigDialog::ActionConfigDialog(const QDict<ToolbarEntry> &toolbarList, KMainWindow* parent, const char* name, bool modal, WFlags fl, const QString& defaultAction )
+ActionConfigDialog::ActionConfigDialog(const TQDict<ToolbarEntry> &toolbarList, KMainWindow* parent, const char* name, bool modal, WFlags fl, const TQString& defaultAction )
:ActionConfigDialogS( parent, name, modal, fl )
{
m_mainWindow = parent;
@@ -63,28 +63,28 @@ ActionConfigDialog::ActionConfigDialog(const QDict<ToolbarEntry> &toolbarList, K
currentAction = 0L;
m_toolbarItem = 0L;
- connect(actionTreeView, SIGNAL(contextMenu(KListView *,QListViewItem *,const QPoint &)),
- SLOT(slotContextMenu(KListView *,QListViewItem *,const QPoint &)));
- connect(actionTreeView, SIGNAL(selectionChanged(QListViewItem *)),
- SLOT(slotSelectionChanged(QListViewItem *)));
- connect(shortcutKeyButton, SIGNAL(capturedShortcut(const KShortcut &)),
- SLOT(slotShortcutCaptured(const KShortcut &)));
- connect(scriptPath, SIGNAL(activated(const QString&)),
- SLOT(slotTextChanged(const QString&)));
- connect(this, SIGNAL(addToolbar()), m_mainWindow, SLOT(slotAddToolbar()));
- connect(this, SIGNAL(removeToolbar(const QString&)), m_mainWindow, SLOT(slotRemoveToolbar(const QString&)));
- connect(this, SIGNAL(deleteUserAction(KAction*)), m_mainWindow, SLOT(slotDeleteAction(KAction*)));
- connect(this, SIGNAL(configureToolbars(const QString&)), m_mainWindow, SLOT(slotConfigureToolbars(const QString&)));
+ connect(actionTreeView, TQT_SIGNAL(contextMenu(KListView *,TQListViewItem *,const TQPoint &)),
+ TQT_SLOT(slotContextMenu(KListView *,TQListViewItem *,const TQPoint &)));
+ connect(actionTreeView, TQT_SIGNAL(selectionChanged(TQListViewItem *)),
+ TQT_SLOT(slotSelectionChanged(TQListViewItem *)));
+ connect(shortcutKeyButton, TQT_SIGNAL(capturedShortcut(const KShortcut &)),
+ TQT_SLOT(slotShortcutCaptured(const KShortcut &)));
+ connect(scriptPath, TQT_SIGNAL(activated(const TQString&)),
+ TQT_SLOT(slotTextChanged(const TQString&)));
+ connect(this, TQT_SIGNAL(addToolbar()), m_mainWindow, TQT_SLOT(slotAddToolbar()));
+ connect(this, TQT_SIGNAL(removeToolbar(const TQString&)), m_mainWindow, TQT_SLOT(slotRemoveToolbar(const TQString&)));
+ connect(this, TQT_SIGNAL(deleteUserAction(KAction*)), m_mainWindow, TQT_SLOT(slotDeleteAction(KAction*)));
+ connect(this, TQT_SIGNAL(configureToolbars(const TQString&)), m_mainWindow, TQT_SLOT(slotConfigureToolbars(const TQString&)));
//fill up the tree view with the toolbars and actions
actionTreeView->setSorting(-1);
allActionsItem = new KListViewItem(actionTreeView, i18n("All"));
actionTreeView->insertItem(allActionsItem);
- QListViewItem *item, *oldItem = allActionsItem;
+ TQListViewItem *item, *oldItem = allActionsItem;
KAction *action;
- QString toolbarName;
- QString toolbarId;
+ TQString toolbarName;
+ TQString toolbarId;
ToolbarTabWidget *tb = ToolbarTabWidget::ref();
- QRegExp r("\\&(?!\\&)");
+ TQRegExp r("\\&(?!\\&)");
KActionCollection *ac = m_mainWindow->actionCollection();
for (int i = 0; i < tb->count(); i++)
{
@@ -94,11 +94,11 @@ ActionConfigDialog::ActionConfigDialog(const QDict<ToolbarEntry> &toolbarList, K
actionTreeView->insertItem(item);
toolbarId = tb->id(i);
- QListViewItem *oldActionItem = 0L;
+ TQListViewItem *oldActionItem = 0L;
ToolbarEntry *p_toolbar = m_toolbarList[toolbarId];
if (p_toolbar)
{
- QDomNode node = p_toolbar->guiClient->domDocument().firstChild().firstChild().firstChild();
+ TQDomNode node = p_toolbar->guiClient->domDocument().firstChild().firstChild().firstChild();
while (!node.isNull())
{
if (node.nodeName() == "Action")
@@ -122,7 +122,7 @@ ActionConfigDialog::ActionConfigDialog(const QDict<ToolbarEntry> &toolbarList, K
actionTreeView->setCurrentItem(item->firstChild());
} else
{
- QListViewItem *actionItem = item->firstChild();
+ TQListViewItem *actionItem = item->firstChild();
while (actionItem && actionItem->depth() > 0)
{
if (actionItem->text(0) == defaultAction || actionItem->text(0) == defaultAction + "...")
@@ -148,9 +148,9 @@ ActionConfigDialog::ActionConfigDialog(const QDict<ToolbarEntry> &toolbarList, K
allActionsItem->sortChildItems(0, true);
treeMenu = new KPopupMenu(actionTreeView);
- treeMenu->insertItem(i18n("&Add New Toolbar"), this, SLOT(slotAddToolbar()));
- treeMenu->insertItem(i18n("&Remove Toolbar"), this, SLOT(slotRemoveToolbar()));
- treeMenu->insertItem(i18n("&Edit Toolbar"), this, SLOT(slotEditToolbar()));
+ treeMenu->insertItem(i18n("&Add New Toolbar"), this, TQT_SLOT(slotAddToolbar()));
+ treeMenu->insertItem(i18n("&Remove Toolbar"), this, TQT_SLOT(slotRemoveToolbar()));
+ treeMenu->insertItem(i18n("&Edit Toolbar"), this, TQT_SLOT(slotEditToolbar()));
globalShortcuts = KGlobal::config()->entryMap( "Global Shortcuts" );
}
@@ -162,8 +162,8 @@ ActionConfigDialog::~ActionConfigDialog()
void ActionConfigDialog::slotAddToolbar()
{
emit addToolbar();
- QString toolbarName;
- QListViewItem *item;
+ TQString toolbarName;
+ TQListViewItem *item;
ToolbarTabWidget *tb = ToolbarTabWidget::ref();
for (int i = 0; i < tb->count(); i++)
{
@@ -181,8 +181,8 @@ void ActionConfigDialog::slotAddToolbar()
void ActionConfigDialog::slotRemoveToolbar()
{
- QListViewItem *item = actionTreeView->currentItem();
- QString s = item->text(0);
+ TQListViewItem *item = actionTreeView->currentItem();
+ TQString s = item->text(0);
if (item->parent())
{
item = item->parent();
@@ -190,29 +190,29 @@ void ActionConfigDialog::slotRemoveToolbar()
}
if (s != i18n("All"))
{
- if ( KMessageBox::warningContinueCancel(this, i18n("Do you really want to remove the \"%1\" toolbar?").arg(s),QString::null,KStdGuiItem::del()) == KMessageBox::Continue )
+ if ( KMessageBox::warningContinueCancel(this, i18n("Do you really want to remove the \"%1\" toolbar?").arg(s),TQString::null,KStdGuiItem::del()) == KMessageBox::Continue )
{
m_toolbarItem = item;
- connect(m_mainWindow, SIGNAL(toolbarRemoved(const QString&)), SLOT(slotToolbarRemoved(const QString&)));
+ connect(m_mainWindow, TQT_SIGNAL(toolbarRemoved(const TQString&)), TQT_SLOT(slotToolbarRemoved(const TQString&)));
emit removeToolbar(s.lower());
}
}
}
-void ActionConfigDialog::slotToolbarRemoved(const QString &/*name*/)
+void ActionConfigDialog::slotToolbarRemoved(const TQString &/*name*/)
{
actionTreeView->setCurrentItem(allActionsItem);
delete m_toolbarItem;
m_toolbarItem = 0L;
- disconnect(m_mainWindow, SIGNAL(toolbarRemoved(const QString&)), this, SLOT(slotToolbarRemoved(const QString&)));
+ disconnect(m_mainWindow, TQT_SIGNAL(toolbarRemoved(const TQString&)), this, TQT_SLOT(slotToolbarRemoved(const TQString&)));
}
void ActionConfigDialog::slotEditToolbar()
{
- QString toolbarName;
- QString toolbarId;
- QListViewItem *oldItem;
- QListViewItem *item = actionTreeView->currentItem();
+ TQString toolbarName;
+ TQString toolbarId;
+ TQListViewItem *oldItem;
+ TQListViewItem *item = actionTreeView->currentItem();
if (item->parent())
item = item->parent();
toolbarName = item->text(0);
@@ -235,7 +235,7 @@ void ActionConfigDialog::slotEditToolbar()
item = new KListViewItem(actionTreeView, oldItem, toolbarName);
item->setOpen(oldItem->isOpen());
delete oldItem;
- QDomNode node = p_toolbar->guiClient->domDocument().firstChild().firstChild().firstChild();
+ TQDomNode node = p_toolbar->guiClient->domDocument().firstChild().firstChild().firstChild();
while (!node.isNull())
{
if (node.nodeName() == "Action")
@@ -243,7 +243,7 @@ void ActionConfigDialog::slotEditToolbar()
action = ac->action(node.toElement().attribute("name"));
if (action)
{
- oldItem = new KListViewItem(item, oldItem, action->text().replace(QRegExp("\\&(?!\\&)"),""), action->shortcut().toString(), action->name());
+ oldItem = new KListViewItem(item, oldItem, action->text().replace(TQRegExp("\\&(?!\\&)"),""), action->shortcut().toString(), action->name());
oldItem->setPixmap(0, SmallIcon(action->icon()));
}
}
@@ -256,17 +256,17 @@ void ActionConfigDialog::slotEditToolbar()
}
}
-void ActionConfigDialog::slotContextMenu(KListView *,QListViewItem *,const QPoint &point)
+void ActionConfigDialog::slotContextMenu(KListView *,TQListViewItem *,const TQPoint &point)
{
treeMenu->popup(point);
}
-void ActionConfigDialog::slotSelectionChanged(QListViewItem *item)
+void ActionConfigDialog::slotSelectionChanged(TQListViewItem *item)
{
if (currentAction && currentAction->inherits("TagAction"))
{
if ( buttonApply->isEnabled() &&
- KMessageBox::questionYesNo(this, i18n("Do you want to save the changes made to this action?"), QString::null, KStdGuiItem::save(), KStdGuiItem::discard()) == KMessageBox::Yes )
+ KMessageBox::questionYesNo(this, i18n("Do you want to save the changes made to this action?"), TQString::null, KStdGuiItem::save(), KStdGuiItem::discard()) == KMessageBox::Yes )
{
saveCurrentAction();
}
@@ -282,7 +282,7 @@ void ActionConfigDialog::slotSelectionChanged(QListViewItem *item)
for (uint i = 0; i < acCount; i++)
{
KAction *a = ac->action(i);
- QString actionName = a->name();
+ TQString actionName = a->name();
if (a && actionName == item->text(2) && a->inherits("TagAction"))
{
action = static_cast<TagAction*>(a);
@@ -300,20 +300,20 @@ void ActionConfigDialog::slotSelectionChanged(QListViewItem *item)
if (action)
{
currentAction = action;
- QDomElement el = action->data();
+ TQDomElement el = action->data();
if ( el.hasAttribute("icon") )
{
- QString s = el.attribute("icon");
- if (!QFileInfo(s).exists())
- s = QFileInfo(s).fileName();
+ TQString s = el.attribute("icon");
+ if (!TQFileInfo(s).exists())
+ s = TQFileInfo(s).fileName();
actionIcon->setIcon(s);
}
- QString actionText = el.attribute("text");
- actionText.replace(QRegExp("\\&(?!\\&)"),"");
+ TQString actionText = el.attribute("text");
+ actionText.replace(TQRegExp("\\&(?!\\&)"),"");
lineText->setText(actionText);
lineToolTip->setText( el.attribute("tooltip") );
selectedShortcut = action->shortcut();
- QString shortcutText = action->shortcut().toString();
+ TQString shortcutText = action->shortcut().toString();
if (shortcutText.isEmpty())
{
noShortcut->setChecked(true);
@@ -332,12 +332,12 @@ void ActionConfigDialog::slotSelectionChanged(QListViewItem *item)
ToolbarTabWidget *tb = ToolbarTabWidget::ref();
for (int i = 0; i < tb->count(); i++)
{
- QString toolbarName = tb->label(i);
- QString toolbarId = tb->id(i);
+ TQString toolbarName = tb->label(i);
+ TQString toolbarId = tb->id(i);
ToolbarEntry *p_toolbar = m_toolbarList[toolbarId];
if (p_toolbar)
{
- QDomNode node = p_toolbar->guiClient->domDocument().firstChild().firstChild().firstChild();
+ TQDomNode node = p_toolbar->guiClient->domDocument().firstChild().firstChild().firstChild();
while (!node.isNull())
{
if (node.nodeName() == "Action" &&
@@ -367,10 +367,10 @@ void ActionConfigDialog::slotSelectionChanged(QListViewItem *item)
errorBox->setCurrentItem(5);
textEdit->clear();
//set the detailed settings according to the type of the action
- QString type = el.attribute("type", "tag");
+ TQString type = el.attribute("type", "tag");
if (type == "tag")
{
- QDomElement eltag = el.namedItem("tag").toElement();
+ TQDomElement eltag = el.namedItem("tag").toElement();
lineTag->setText( eltag.text() );
useActionDialog->setChecked(eltag.attribute("useDialog","false") == "true");
eltag = el.namedItem("xtag").toElement();
@@ -380,10 +380,10 @@ void ActionConfigDialog::slotSelectionChanged(QListViewItem *item)
}
else if (type == "script")
{
- QDomElement elScript = el.namedItem("script").toElement();
+ TQDomElement elScript = el.namedItem("script").toElement();
scriptPath->setText( elScript.text() );
- QString s;
+ TQString s;
s = elScript.attribute("input","none");
if (s == "current")
{
@@ -465,12 +465,12 @@ void ActionConfigDialog::slotSelectionChanged(QListViewItem *item)
void ActionConfigDialog::saveCurrentAction()
{
static_cast<TagAction *>(currentAction)->setModified(true);
- QString s;
- QDomElement el = static_cast<TagAction *>(currentAction)->data();
+ TQString s;
+ TQDomElement el = static_cast<TagAction *>(currentAction)->data();
s = actionIcon->icon();
el.setAttribute("icon", s);
currentAction->setIcon(s);
- QString oldText = el.attribute("text");
+ TQString oldText = el.attribute("text");
s = lineText->text();
s.replace('&', "&&");
el.setAttribute("text", s);
@@ -491,8 +491,8 @@ void ActionConfigDialog::saveCurrentAction()
//update the tree view
- QListViewItem *listItem;
- QListViewItemIterator it(actionTreeView);
+ TQListViewItem *listItem;
+ TQListViewItemIterator it(actionTreeView);
while (it.current())
{
listItem = it.current();
@@ -506,7 +506,7 @@ void ActionConfigDialog::saveCurrentAction()
}
//remove all the detailed settings
- QDomElement item = el.namedItem("tag").toElement();
+ TQDomElement item = el.namedItem("tag").toElement();
if ( !item.isNull() )
el.removeChild(item);
item = el.namedItem("tag").toElement();
@@ -522,7 +522,7 @@ void ActionConfigDialog::saveCurrentAction()
if ( !item.isNull() )
el.removeChild(item);
//add the new detailed settings
- QDomDocument document = QDomDocument();
+ TQDomDocument document = TQDomDocument();
int type = typeCombo->currentItem();
switch (type)
{
@@ -611,13 +611,13 @@ void ActionConfigDialog::saveCurrentAction()
ToolbarTabWidget *tb = ToolbarTabWidget::ref();
for (int i = 0; i < tb->count(); i++)
{
- QString toolbarName = tb->label(i);
- QString toolbarId = tb->id(i);
+ TQString toolbarName = tb->label(i);
+ TQString toolbarId = tb->id(i);
ToolbarEntry *p_toolbar = m_toolbarList[toolbarId];
bool isOnToolbar = false;
if (p_toolbar)
{
- QDomNode node = p_toolbar->guiClient->domDocument().firstChild().firstChild().firstChild();
+ TQDomNode node = p_toolbar->guiClient->domDocument().firstChild().firstChild().firstChild();
bool placeOnToolbar = toolbarListBox->findItem(toolbarName, Qt::ExactMatch);
while (!node.isNull())
{
@@ -631,7 +631,7 @@ void ActionConfigDialog::saveCurrentAction()
currentAction->unplug(tb->page(i));
currentAction->unplug(p_toolbar->menu);
node.parentNode().removeChild(node);
- QListViewItemIterator iter(actionTreeView);
+ TQListViewItemIterator iter(actionTreeView);
while (iter.current())
{
listItem = iter.current();
@@ -661,7 +661,7 @@ void ActionConfigDialog::saveCurrentAction()
listItem = actionTreeView->findItem(toolbarName, 0);
if (listItem)
{
- QListViewItem *after = listItem->firstChild();
+ TQListViewItem *after = listItem->firstChild();
while ( after && (!after->nextSibling() || (after->nextSibling() && after->nextSibling()->depth()!=0 ) ))
{
if (after->text(2) == currentAction->name())
@@ -681,7 +681,7 @@ void ActionConfigDialog::saveCurrentAction()
KXMLGUIFactory::saveConfigFile(p_toolbar->guiClient->domDocument(),
p_toolbar->guiClient->xmlFile(), p_toolbar->guiClient->instance());
}
- QWidget *toolBar = tb->page(i);
+ TQWidget *toolBar = tb->page(i);
if (toolBar->minimumSizeHint().height() > 20)
{
toolBar->adjustSize();
@@ -696,23 +696,23 @@ void ActionConfigDialog::saveCurrentAction()
void ActionConfigDialog::slotShortcutCaptured(const KShortcut &shortcut)
{
- QString shortcutText = shortcut.toString();
- QString shortcutText2;
+ TQString shortcutText = shortcut.toString();
+ TQString shortcutText2;
int pos = shortcutText.find(';');
if (pos != -1)
{
shortcutText2 = shortcutText.mid(pos + 1);
shortcutText = shortcutText.left(pos);
}
- QString s = shortcutText;
+ TQString s = shortcutText;
s.replace('+', "\\+");
- QRegExp shortcutRx("\\(" + s + "\\)|" + s + "$|" + s + ";");
+ TQRegExp shortcutRx("\\(" + s + "\\)|" + s + "$|" + s + ";");
s = shortcutText2;
s.replace('+', "\\+");
- QRegExp shortcutRx2("\\(" + s + "\\)|" + s + "$|" + s + ";");
- QString global;
+ TQRegExp shortcutRx2("\\(" + s + "\\)|" + s + "$|" + s + ";");
+ TQString global;
//check for conflicting global shortcuts
- QMap<QString, QString>::Iterator it;
+ TQMap<TQString, TQString>::Iterator it;
for ( it = globalShortcuts.begin(); it != globalShortcuts.end(); ++it )
{
if (it.data().contains(shortcutRx))
@@ -730,8 +730,8 @@ void ActionConfigDialog::slotShortcutCaptured(const KShortcut &shortcut)
if (global.isEmpty())
{
- QPtrList<KXMLGUIClient> clients = m_mainWindow->guiFactory()->clients();
- for( QPtrListIterator<KXMLGUIClient> it( clients ); it.current(); ++it )
+ TQPtrList<KXMLGUIClient> clients = m_mainWindow->guiFactory()->clients();
+ for( TQPtrListIterator<KXMLGUIClient> it( clients ); it.current(); ++it )
{
KActionCollection *ac = (*it)->actionCollection();
for (uint i = 0; i < ac->count(); i++)
@@ -762,7 +762,7 @@ void ActionConfigDialog::slotShortcutCaptured(const KShortcut &shortcut)
} else
{
global.replace('&',"");
- QString s = i18n("The '%1' key combination has already been allocated "
+ TQString s = i18n("The '%1' key combination has already been allocated "
"to the \"%2\" action.\n"
"Please choose a unique key combination.").
arg(shortcutText).arg(global);
@@ -779,22 +779,22 @@ void ActionConfigDialog::accept()
void ActionConfigDialog::reject()
{
- if (buttonApply->isEnabled() && KMessageBox::questionYesNo(this, i18n("Do you want to save the changes made to this action?"), QString::null, KStdGuiItem::save(), KStdGuiItem::discard()) == KMessageBox::Yes )
+ if (buttonApply->isEnabled() && KMessageBox::questionYesNo(this, i18n("Do you want to save the changes made to this action?"), TQString::null, KStdGuiItem::save(), KStdGuiItem::discard()) == KMessageBox::Yes )
saveCurrentAction();
ActionConfigDialogS::reject();
}
void ActionConfigDialog::slotNewAction()
{
- QDomDocument doc;
- QDomElement el = doc.createElement("action");
+ TQDomDocument doc;
+ TQDomElement el = doc.createElement("action");
el.setAttribute( "name", "user_"+KApplication::randomString(10) );
el.setAttribute( "icon", "ball" );
currentAction = new TagAction(&el, m_mainWindow);
//add the actions to every toolbar xmlguiclient
- QDictIterator<ToolbarEntry> it(m_toolbarList);
+ TQDictIterator<ToolbarEntry> it(m_toolbarList);
while (it.current())
{
it.current()->guiClient->actionCollection()->insert(currentAction);
@@ -803,9 +803,9 @@ void ActionConfigDialog::slotNewAction()
selectedShortcut = KShortcut();
static_cast<TagAction*>(currentAction)->setModified(true);
- QListViewItem *currentItem = actionTreeView->currentItem();
- QListViewItem *item = new KListViewItem(allActionsItem);
- QString actionText = QString("Action_%1").arg(m_mainWindow->actionCollection()->count());
+ TQListViewItem *currentItem = actionTreeView->currentItem();
+ TQListViewItem *item = new KListViewItem(allActionsItem);
+ TQString actionText = TQString("Action_%1").arg(m_mainWindow->actionCollection()->count());
currentAction->setText(actionText);
item->setText(2, currentAction->name());
item->setText(0, actionText);
@@ -816,7 +816,7 @@ void ActionConfigDialog::slotNewAction()
actionTreeView->setCurrentItem(item);
} else
{
- QListViewItem *parentItem = currentItem->parent();
+ TQListViewItem *parentItem = currentItem->parent();
if (!parentItem)
parentItem = currentItem;
@@ -838,14 +838,14 @@ void ActionConfigDialog::slotNewAction()
void ActionConfigDialog::slotDeleteAction()
{
- if ( KMessageBox::warningContinueCancel(this, i18n("<qt>Removing the action removes all the references to it.\nAre you sure you want to remove the <b>%1</b> action?</qt>").arg(currentAction->text()),QString::null,KStdGuiItem::del()) == KMessageBox::Continue )
+ if ( KMessageBox::warningContinueCancel(this, i18n("<qt>Removing the action removes all the references to it.\nAre you sure you want to remove the <b>%1</b> action?</qt>").arg(currentAction->text()),TQString::null,KStdGuiItem::del()) == KMessageBox::Continue )
{
- QString actionName = currentAction->name();
+ TQString actionName = currentAction->name();
emit deleteUserAction(currentAction);
currentAction = 0L;
//update the tree view
- QListViewItem *listItem;
- QListViewItemIterator it(actionTreeView);
+ TQListViewItem *listItem;
+ TQListViewItemIterator it(actionTreeView);
while (it.current())
{
listItem = it.current();
@@ -873,7 +873,7 @@ void ActionConfigDialog::slotAddContainerToolbar()
ToolbarTabWidget *tb = ToolbarTabWidget::ref();
int i;
- QStringList lst;
+ TQStringList lst;
for (i = 0; i < tb->count(); i++)
{
if (!toolbarListBox->findItem(tb->label(i), Qt::ExactMatch))
@@ -883,7 +883,7 @@ void ActionConfigDialog::slotAddContainerToolbar()
if (lst.count() > 0)
{
bool ok = false;
- QString res = KInputDialog::getItem(
+ TQString res = KInputDialog::getItem(
i18n( "Add Action to Toolbar" ),
i18n( "Please select a toolbar:" ), lst, 0, false, &ok, this );
@@ -916,12 +916,12 @@ void ActionConfigDialog::slotTextChanged()
buttonApply->setEnabled(true);
}
-void ActionConfigDialog::slotTextChanged(const QString&)
+void ActionConfigDialog::slotTextChanged(const TQString&)
{
buttonApply->setEnabled(true);
}
-void ActionConfigDialog::createScriptAction(const QString& a_name, const QString& a_script)
+void ActionConfigDialog::createScriptAction(const TQString& a_name, const TQString& a_script)
{
actionTreeView->setCurrentItem(allActionsItem);
slotNewAction();