summaryrefslogtreecommitdiffstats
path: root/quanta/project/eventeditordlg.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-16 19:02:47 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-06-16 19:02:47 +0000
commite985f7e545f4739493965aad69bbecb136dc9346 (patch)
tree54afd409d8acd6202dd8ab611d24e78c28e4c0a0 /quanta/project/eventeditordlg.cpp
parentf7670c198945adc3b95ad69a959fe5f8ae55b493 (diff)
downloadtdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.tar.gz
tdewebdev-e985f7e545f4739493965aad69bbecb136dc9346.zip
TQt4 port kdewebdev
This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1237029 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'quanta/project/eventeditordlg.cpp')
-rw-r--r--quanta/project/eventeditordlg.cpp52
1 files changed, 26 insertions, 26 deletions
diff --git a/quanta/project/eventeditordlg.cpp b/quanta/project/eventeditordlg.cpp
index 2926f916..db5c8b93 100644
--- a/quanta/project/eventeditordlg.cpp
+++ b/quanta/project/eventeditordlg.cpp
@@ -35,12 +35,12 @@ extern TQString taskLeaderStr;
extern TQString teamLeaderStr;
extern TQString subprojectLeaderStr;
-EventEditorDlg::EventEditorDlg(KActionCollection *actionCollection, TQWidget* parent, const char* name, WFlags fl)
-: EventEditorDlgS(parent,name,fl)
+EventEditorDlg::EventEditorDlg(KActionCollection *actionCollection, TQWidget* tqparent, const char* name, WFlags fl)
+: EventEditorDlgS(tqparent,name,fl)
{
m_actionCollection = actionCollection;
- eventCombo->insertStringList(QPEvents::ref()->eventNames());
- actionCombo->insertStringList(QPEvents::ref()->actionNames());
+ eventCombo->insertStringList(TQPEvents::ref()->eventNames());
+ actionCombo->insertStringList(TQPEvents::ref()->actionNames());
slotActionChanged(actionCombo->currentText());
}
@@ -79,7 +79,7 @@ TQString EventEditorDlg::argument1()
{
TQString s = argument1Combo->currentText();
TQString actionType = actionCombo->currentText();
- if (actionType == QPEvents::ref()->fullActionName("email"))
+ if (actionType == TQPEvents::ref()->fullActionName("email"))
{
if (s == i18n(teamLeaderStr.utf8()))
s = "teamleader";
@@ -96,7 +96,7 @@ TQString EventEditorDlg::argument1()
}
return s;
} else
- if (actionType == QPEvents::ref()->fullActionName("script"))
+ if (actionType == TQPEvents::ref()->fullActionName("script"))
{
TQString s = argument1Combo->currentText();
for (TQMap<TQString, TQString>::ConstIterator it = m_scriptActions.constBegin(); it != m_scriptActions.constEnd(); ++it)
@@ -109,7 +109,7 @@ TQString EventEditorDlg::argument1()
}
return s;
} else
- if (actionType == QPEvents::ref()->fullActionName("action"))
+ if (actionType == TQPEvents::ref()->fullActionName("action"))
{
TQString s = argument1Combo->currentText();
for (TQMap<TQString, TQString>::ConstIterator it = m_otherActions.constBegin(); it != m_otherActions.constEnd(); ++it)
@@ -126,7 +126,7 @@ TQString EventEditorDlg::argument1()
return s;
}
- return TQString::null;
+ return TQString();
}
TQString EventEditorDlg::argument2()
@@ -134,7 +134,7 @@ TQString EventEditorDlg::argument2()
if (argument2Combo->isEnabled())
{
TQString actionType = actionCombo->currentText();
- if (actionType == QPEvents::ref()->fullActionName("log"))
+ if (actionType == TQPEvents::ref()->fullActionName("log"))
{
int id = argument2Combo->currentItem();
if (id == 0)
@@ -142,7 +142,7 @@ TQString EventEditorDlg::argument2()
else
return "minimal";
} else
- if (actionType == QPEvents::ref()->fullActionName("script"))
+ if (actionType == TQPEvents::ref()->fullActionName("script"))
{
int id = argument2Combo->currentItem();
if (id == 0)
@@ -152,7 +152,7 @@ TQString EventEditorDlg::argument2()
}
return argument2Combo->currentText();
} else
- return TQString::null;
+ return TQString();
}
TQString EventEditorDlg::argument3()
@@ -160,7 +160,7 @@ TQString EventEditorDlg::argument3()
if (argument3Combo->isEnabled())
{
TQString actionType = actionCombo->currentText();
- if (actionType == QPEvents::ref()->fullActionName("log"))
+ if (actionType == TQPEvents::ref()->fullActionName("log"))
{
int id = argument3Combo->currentItem();
if (id == 0)
@@ -170,7 +170,7 @@ TQString EventEditorDlg::argument3()
}
return argument3Combo->currentText();
} else
- return TQString::null;
+ return TQString();
}
TQString EventEditorDlg::argument4()
@@ -179,13 +179,13 @@ TQString EventEditorDlg::argument4()
{
return argument4Combo->currentText();
} else
- return TQString::null;
+ return TQString();
}
void EventEditorDlg::setArguments(const TQStringList& arguments)
{
TQString actionType = actionCombo->currentText();
- if (actionType == QPEvents::ref()->fullActionName("email"))
+ if (actionType == TQPEvents::ref()->fullActionName("email"))
{
TQString s = arguments[0];
if (s == "teamleader")
@@ -218,10 +218,10 @@ void EventEditorDlg::setArguments(const TQStringList& arguments)
argument1Combo->setCurrentItem(0);
}
} else
- if (actionType == QPEvents::ref()->fullActionName("script"))
+ if (actionType == TQPEvents::ref()->fullActionName("script"))
{
TQString s = arguments[0];
- if (m_scriptActions.contains(s))
+ if (m_scriptActions.tqcontains(s))
s = m_scriptActions[s];
if (argument1Combo->contains(s))
{
@@ -246,10 +246,10 @@ void EventEditorDlg::setArguments(const TQStringList& arguments)
argument2Combo->setCurrentItem(1);
return; //setup for script arguments completed
} else
- if (actionType == QPEvents::ref()->fullActionName("action"))
+ if (actionType == TQPEvents::ref()->fullActionName("action"))
{
TQString s = arguments[0];
- if (m_otherActions.contains(s))
+ if (m_otherActions.tqcontains(s))
s = m_otherActions[s];
if (argument1Combo->contains(s))
{
@@ -268,7 +268,7 @@ void EventEditorDlg::setArguments(const TQStringList& arguments)
argument1Combo->setCurrentItem(0);
}
} else
- if (actionType == QPEvents::ref()->fullActionName("log"))
+ if (actionType == TQPEvents::ref()->fullActionName("log"))
{
argument1Combo->insertItem(arguments[0], 0);
argument1Combo->setCurrentItem(0);
@@ -312,7 +312,7 @@ void EventEditorDlg::slotActionChanged(const TQString &name)
resetArgumentWidgets(argument2Label, argument2Combo);
resetArgumentWidgets(argument3Label, argument3Combo);
resetArgumentWidgets(argument4Label, argument4Combo);
- if (name == QPEvents::ref()->fullActionName("email"))
+ if (name == TQPEvents::ref()->fullActionName("email"))
{
argument1Label->setEnabled(true);
argument1Label->setText(i18n("Receiver:"));
@@ -331,7 +331,7 @@ void EventEditorDlg::slotActionChanged(const TQString &name)
argument1Combo->insertItem(i18n(taskLeaderStr.utf8()) + " - " + tasks[i]);
}
} else
- if (name == QPEvents::ref()->fullActionName("log"))
+ if (name == TQPEvents::ref()->fullActionName("log"))
{
argument1Label->setEnabled(true);
argument1Label->setText(i18n("Log file:"));
@@ -350,7 +350,7 @@ void EventEditorDlg::slotActionChanged(const TQString &name)
argument3Combo->insertItem(i18n("Create New Log"), 0);
argument3Combo->insertItem(i18n("Append to Existing Log"), 1);
} else
- if (name == QPEvents::ref()->fullActionName("script"))
+ if (name == TQPEvents::ref()->fullActionName("script"))
{
argument1Label->setEnabled(true);
argument1Label->setText(i18n("Action name:"));
@@ -363,7 +363,7 @@ void EventEditorDlg::slotActionChanged(const TQString &name)
action = dynamic_cast<TagAction*>(m_actionCollection->action(i));
if (action && action->type() == "script")
{
- s = action->text().replace(r, "");
+ s = action->text().tqreplace(r, "");
items.append(s);
m_scriptActions[action->name()] = s;
}
@@ -378,7 +378,7 @@ void EventEditorDlg::slotActionChanged(const TQString &name)
argument2Combo->insertItem(i18n("Yes"), 0);
argument2Combo->insertItem(i18n("No"), 1);
} else
- if (name == QPEvents::ref()->fullActionName("action"))
+ if (name == TQPEvents::ref()->fullActionName("action"))
{
argument1Label->setEnabled(true);
argument1Label->setText(i18n("Action name:"));
@@ -392,7 +392,7 @@ void EventEditorDlg::slotActionChanged(const TQString &name)
action = dynamic_cast<TagAction*>(a);
if (!action || action->type() != "script")
{
- s = a->text().replace(r, "");
+ s = a->text().tqreplace(r, "");
items.append(s);
m_otherActions[a->name()] = s;
}