summaryrefslogtreecommitdiffstats
path: root/quanta/utility/qpevents.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/utility/qpevents.cpp')
-rw-r--r--quanta/utility/qpevents.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/quanta/utility/qpevents.cpp b/quanta/utility/qpevents.cpp
index 7be8fc66..52be21ba 100644
--- a/quanta/utility/qpevents.cpp
+++ b/quanta/utility/qpevents.cpp
@@ -36,7 +36,7 @@
#include "tagaction.h"
//TODO: Better create a class for each internal event action
-TQPEvents::TQPEvents(TQObject *tqparent, const char *name)
+QPEvents::QPEvents(TQObject *tqparent, const char *name)
: TQObject(tqparent, name)
{
m_eventNames["before_save"] = i18n("Before Document Save");
@@ -66,11 +66,11 @@ TQPEvents::TQPEvents(TQObject *tqparent, const char *name)
}
-TQPEvents::~TQPEvents()
+QPEvents::~QPEvents()
{
}
-void TQPEvents::slotEventHappened(const TQString& name, const TQString& argument1, const TQString& argument2)
+void QPEvents::slotEventHappened(const TQString& name, const TQString& argument1, const TQString& argument2)
{
if (!quantaApp || !Project::ref()->eventsEnabled())
return;
@@ -131,7 +131,7 @@ void TQPEvents::slotEventHappened(const TQString& name, const TQString& argument
}
} else
{
- TQString relativePath = TQExtFileInfo::toRelative(url, Project::ref()->projectBaseURL()).path();
+ TQString relativePath = QExtFileInfo::toRelative(url, Project::ref()->projectBaseURL()).path();
if (inProject && name == "after_save")
{
ev.arguments << i18n("Document saved");
@@ -224,7 +224,7 @@ void TQPEvents::slotEventHappened(const TQString& name, const TQString& argument
KMessageBox::sorry(0L, i18n("<qt>Unsupported event <b>%1</b>.</qt>").tqarg(name), i18n("Event Handling Error"));
}
-bool TQPEvents::handleEvent(const EventAction& ev)
+bool QPEvents::handleEvent(const EventAction& ev)
{
if (ev.type == EventAction::Internal)
{
@@ -344,7 +344,7 @@ bool TQPEvents::handleEvent(const EventAction& ev)
return false;
}
-TQString TQPEvents::fullEventName(const TQString &name)
+TQString QPEvents::fullEventName(const TQString &name)
{
if (m_eventNames.tqcontains(name))
return m_eventNames[name];
@@ -352,7 +352,7 @@ TQString TQPEvents::fullEventName(const TQString &name)
return name;
}
-TQString TQPEvents::fullActionName(const TQString& name)
+TQString QPEvents::fullActionName(const TQString& name)
{
if (m_actionNames.tqcontains(name))
return m_actionNames[name];
@@ -360,7 +360,7 @@ TQString TQPEvents::fullActionName(const TQString& name)
return name;
}
-TQString TQPEvents::eventName(const TQString &fullName)
+TQString QPEvents::eventName(const TQString &fullName)
{
for (TQMap<TQString, TQString>::ConstIterator it = m_eventNames.constBegin(); it != m_eventNames.constEnd(); ++it)
{
@@ -370,7 +370,7 @@ TQString TQPEvents::eventName(const TQString &fullName)
return fullName;
}
-TQString TQPEvents::actionName(const TQString &fullName)
+TQString QPEvents::actionName(const TQString &fullName)
{
for (TQMap<TQString, TQString>::ConstIterator it = m_actionNames.constBegin(); it != m_actionNames.constEnd(); ++it)
{
@@ -380,7 +380,7 @@ TQString TQPEvents::actionName(const TQString &fullName)
return fullName;
}
-TQStringList TQPEvents::eventNames()
+TQStringList QPEvents::eventNames()
{
TQStringList names;
for (TQMap<TQString, TQString>::ConstIterator it = m_eventNames.constBegin(); it != m_eventNames.constEnd(); ++it)
@@ -390,7 +390,7 @@ TQStringList TQPEvents::eventNames()
return names;
}
-TQStringList TQPEvents::actionNames()
+TQStringList QPEvents::actionNames()
{
TQStringList names;
for (TQMap<TQString, TQString>::ConstIterator it = m_actionNames.constBegin(); it != m_actionNames.constEnd(); ++it)