summaryrefslogtreecommitdiffstats
path: root/src/kile/kilejscript.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/kile/kilejscript.cpp')
-rw-r--r--src/kile/kilejscript.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/kile/kilejscript.cpp b/src/kile/kilejscript.cpp
index 70dafa2..d391c40 100644
--- a/src/kile/kilejscript.cpp
+++ b/src/kile/kilejscript.cpp
@@ -32,7 +32,7 @@
#include <tqdir.h>
#include <tqfile.h>
#include <tqfileinfo.h>
-#include <tqtextstream.h>
+#include <textstream.h>
#include <tqvaluelist.h>
#include "kileconfig.h"
@@ -93,7 +93,7 @@ namespace KJS {
UString::UString(const TQString &d) {
unsigned int len = d.length();
UChar *dat = new UChar[len];
- memcpy(dat, d.tqunicode(), len * sizeof(UChar));
+ memcpy(dat, d.unicode(), len * sizeof(UChar));
rep = UString::Rep::create(dat, len);
}
@@ -497,12 +497,12 @@ namespace KileJScript {
if(o.isValid()) {
Value lineValue = o.get(m_interpreter->globalExec(), "line");
if(lineValue.type() == NumberType) {
- KMessageBox::sorry(0L, i18n("The following exception has occurred at line %1 during execution of the script:\n%2").tqarg(lineValue.toInt32(m_interpreter->globalExec())).tqarg(value.toString(m_interpreter->globalExec()).qstring()), i18n("Exception"));
+ KMessageBox::sorry(0L, i18n("The following exception has occurred at line %1 during execution of the script:\n%2").arg(lineValue.toInt32(m_interpreter->globalExec())).arg(value.toString(m_interpreter->globalExec()).qstring()), i18n("Exception"));
return;
}
}
}
- KMessageBox::sorry(0L, i18n("The following exception has occurred during execution of the script:\n%1").tqarg(value.toString(m_interpreter->globalExec()).qstring()), i18n("Exception"));
+ KMessageBox::sorry(0L, i18n("The following exception has occurred during execution of the script:\n%1").arg(value.toString(m_interpreter->globalExec()).qstring()), i18n("Exception"));
}
}
@@ -544,7 +544,7 @@ m_kileInfo->viewManager()->currentView()->down();*/
if(requiredVersionTagExp.search(firstLine) != -1) {
TQString requiredKileVersion = requiredVersionTagExp.cap(2);
if(compareVersionStrings(requiredKileVersion, kileFullVersion) > 0) {
- KMessageBox::sorry(0L, i18n("Version %1 of Kile is at least required to execute the script \"%2\". The execution has been aborted.").tqarg(requiredKileVersion).tqarg(script->getName()), i18n("Version Error"));
+ KMessageBox::sorry(0L, i18n("Version %1 of Kile is at least required to execute the script \"%2\". The execution has been aborted.").arg(requiredKileVersion).arg(script->getName()), i18n("Version Error"));
return;
}
}
@@ -779,7 +779,7 @@ m_kileInfo->viewManager()->currentView()->down();*/
ScriptExecutionAction::ScriptExecutionAction(unsigned int id, KileJScript::Manager *manager, KActionCollection* parent) : KAction(TQString(), KShortcut(), NULL, NULL, parent, TQString("script_execution_" + TQString::number(id)).ascii()), m_manager(manager), m_id(id) {
const KileJScript::JScript *script = m_manager->getScript(m_id);
Q_ASSERT(script);
- setText(i18n("Execution of %1").tqarg(script->getName()));
+ setText(i18n("Execution of %1").arg(script->getName()));
connect(this, TQT_SIGNAL(activated()), this, TQT_SLOT(executeScript()));
}