diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2010-07-31 19:54:04 +0000 |
commit | dc6b8e72fed2586239e3514819238c520636c9d9 (patch) | |
tree | 88b200df0a0b7fab9d6f147596173556f1ed9a13 /quanta/project/eventconfigurationdlg.cpp | |
parent | 6927d4436e54551917f600b706a8d6109e49de1c (diff) | |
download | tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.tar.gz tdewebdev-dc6b8e72fed2586239e3514819238c520636c9d9.zip |
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1157656 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'quanta/project/eventconfigurationdlg.cpp')
-rw-r--r-- | quanta/project/eventconfigurationdlg.cpp | 38 |
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) { |