summaryrefslogtreecommitdiffstats
path: root/quanta/project/eventconfigurationdlg.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/project/eventconfigurationdlg.cpp')
-rw-r--r--quanta/project/eventconfigurationdlg.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/quanta/project/eventconfigurationdlg.cpp b/quanta/project/eventconfigurationdlg.cpp
index e85ce7f6..29d23964 100644
--- a/quanta/project/eventconfigurationdlg.cpp
+++ b/quanta/project/eventconfigurationdlg.cpp
@@ -15,7 +15,7 @@
***************************************************************************/
//qt includes
-#include <qdom.h>
+#include <tqdom.h>
//kde includes
#include <kcombobox.h>
@@ -29,7 +29,7 @@
#include "eventeditordlg.h"
#include "qpevents.h"
-EventConfigurationDlg::EventConfigurationDlg(KActionCollection *actionCollection, QWidget* parent, const char* name, WFlags fl)
+EventConfigurationDlg::EventConfigurationDlg(KActionCollection *actionCollection, TQWidget* parent, const char* name, WFlags fl)
: EventConfigurationDlgS(parent,name,fl)
{
m_actionCollection = actionCollection;
@@ -41,14 +41,14 @@ EventConfigurationDlg::~EventConfigurationDlg()
void EventConfigurationDlg::initEvents(EventActions *events)
{
- QListViewItem *item;
+ TQListViewItem *item;
for (EventActions::ConstIterator it = events->constBegin(); it != events->constEnd(); ++it)
{
- QValueList<EventAction> evList = it.data();
- for (QValueList<EventAction>::ConstIterator it2 = evList.constBegin(); it2 != evList.constEnd(); ++it2)
+ TQValueList<EventAction> evList = it.data();
+ for (TQValueList<EventAction>::ConstIterator it2 = evList.constBegin(); it2 != evList.constEnd(); ++it2)
{
EventAction ev = *it2;
- item = new QListViewItem(eventsListView, QPEvents::ref()->fullEventName(it.key()), QPEvents::ref()->fullActionName(ev.action));
+ item = new TQListViewItem(eventsListView, QPEvents::ref()->fullEventName(it.key()), QPEvents::ref()->fullActionName(ev.action));
int argcount = ev.arguments.count();
if (argcount > 0)
item->setText(2, ev.arguments[0]);
@@ -62,22 +62,22 @@ void EventConfigurationDlg::initEvents(EventActions *events)
}
}
-void EventConfigurationDlg::saveEvents(QDomDocument dom)
+void EventConfigurationDlg::saveEvents(TQDomDocument dom)
{
- QDomNode projectNode = dom.firstChild().firstChild();
- QDomNode eventsNode = projectNode.namedItem("events");
+ TQDomNode projectNode = dom.firstChild().firstChild();
+ TQDomNode eventsNode = projectNode.namedItem("events");
projectNode.removeChild(eventsNode);
eventsNode = dom.createElement("events");
projectNode.appendChild(eventsNode);
- QDomElement node;
- QListViewItemIterator it(eventsListView);
- QListViewItem *item;
+ TQDomElement node;
+ TQListViewItemIterator it(eventsListView);
+ TQListViewItem *item;
while (it.current())
{
item = it.current();
node = dom.createElement("event");
eventsNode.appendChild(node);
- QDomElement el = node.toElement();
+ TQDomElement el = node.toElement();
el.setAttribute("name", QPEvents::ref()->eventName(item->text(0)));
el.setAttribute("action", QPEvents::ref()->actionName(item->text(1)));
if (el.attribute("action") == "script" || el.attribute("action") == "action")
@@ -86,10 +86,10 @@ void EventConfigurationDlg::saveEvents(QDomDocument dom)
el.setAttribute("type", "internal");
for (uint i = 2; i < 6; i++)
{
- QString s = item->text(i);
+ TQString s = item->text(i);
if (s.isEmpty())
s = "--not set--";
- QDomNode argNode = dom.createElement("argument");
+ TQDomNode argNode = dom.createElement("argument");
node.appendChild(argNode);
argNode.appendChild(dom.createTextNode(s));
}
@@ -104,7 +104,7 @@ void EventConfigurationDlg::slotAddEvent()
editDlg.setMainWidget(&eventDlg);
if (editDlg.exec())
{
- QListViewItem *item = new QListViewItem(eventsListView);
+ TQListViewItem *item = new TQListViewItem(eventsListView);
item->setText(0, eventDlg.eventCombo->currentText());
item->setText(1, eventDlg.actionCombo->currentText());
item->setText(2, eventDlg.argument1());
@@ -116,14 +116,14 @@ void EventConfigurationDlg::slotAddEvent()
void EventConfigurationDlg::slotEditEvent()
{
- QListViewItem *item = eventsListView->currentItem();
+ TQListViewItem *item = eventsListView->currentItem();
if (!item) return;
KDialogBase editDlg(this, "edit_event", true, i18n("Edit Event"), KDialogBase::Ok | KDialogBase::Cancel);
EventEditorDlg eventDlg(m_actionCollection, &editDlg);
editDlg.setMainWidget(&eventDlg);
eventDlg.setEvent(item->text(0));
eventDlg.setAction(item->text(1));
- QStringList arguments;
+ TQStringList arguments;
arguments << item->text(2) << item->text(3) << item->text(4) << item->text(5);
eventDlg.setArguments(arguments);
if (editDlg.exec())
@@ -139,7 +139,7 @@ void EventConfigurationDlg::slotEditEvent()
void EventConfigurationDlg::slotDeleteEvent()
{
- QListViewItem *item = eventsListView->currentItem();
+ TQListViewItem *item = eventsListView->currentItem();
if (!item) return;
if (KMessageBox::warningContinueCancel(this, i18n("<qt>Are you sure that you want to remove the configuration of the <b>%1</b> event?</qt>").arg(item->text(0)), i18n("Delete Event Configuration"),KStdGuiItem::del()) == KMessageBox::Continue)
{