diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-19 12:01:04 -0600 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2011-12-19 12:01:04 -0600 |
commit | 84c989c19db5daab602a67f47ca0f5fd7a2b53d2 (patch) | |
tree | dc5875bd392dce2d636a94bebcf5c44a270fac6d /kommander/executor | |
parent | 9445f97b426e97c6ce46de18fba4030da45d56df (diff) | |
download | tdewebdev-84c989c19db5daab602a67f47ca0f5fd7a2b53d2.tar.gz tdewebdev-84c989c19db5daab602a67f47ca0f5fd7a2b53d2.zip |
Remove additional unneeded tq method conversions
Diffstat (limited to 'kommander/executor')
-rw-r--r-- | kommander/executor/dcopkommanderif.h | 2 | ||||
-rw-r--r-- | kommander/executor/instance.cpp | 8 | ||||
-rw-r--r-- | kommander/executor/instance.h | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/kommander/executor/dcopkommanderif.h b/kommander/executor/dcopkommanderif.h index 3158fa6e..1ba67cbb 100644 --- a/kommander/executor/dcopkommanderif.h +++ b/kommander/executor/dcopkommanderif.h @@ -58,7 +58,7 @@ virtual void setChecked(const TQString &widgetName, bool checked) = 0; virtual void setAssociatedText(const TQString &widgetName, const TQString &text) = 0; virtual TQStringList associatedText(const TQString &widgetName) = 0; virtual TQString type(const TQString& widget) = 0; -virtual TQStringList tqchildren(const TQString& parent, bool recursive) = 0; +virtual TQStringList children(const TQString& parent, bool recursive) = 0; virtual TQString global(const TQString& variableName) = 0; virtual void setGlobal(const TQString& variableName, const TQString& value) = 0; virtual void setMaximum(const TQString &widgetName, int value) = 0; diff --git a/kommander/executor/instance.cpp b/kommander/executor/instance.cpp index f568e9e7..cb95b8b7 100644 --- a/kommander/executor/instance.cpp +++ b/kommander/executor/instance.cpp @@ -75,7 +75,7 @@ void Instance::addCmdlineArguments(const TQStringList& args) } int i = 0; for (TQStringList::ConstIterator it = stdArgs.begin(); it != stdArgs.end(); ++it) - m_textInstance->setGlobal(TQString("_ARG%1").tqarg(++i), *it); + m_textInstance->setGlobal(TQString("_ARG%1").arg(++i), *it); m_textInstance->setGlobal("_ARGS", stdArgs.join(" ")); m_textInstance->setGlobal("_ARGCOUNT", TQString::number(stdArgs.count())); } @@ -185,7 +185,7 @@ bool Instance::isFileValid(const KURL& fname) const if (!TQFileInfo(fname.path()).exists()) { KMessageBox::sorry(0, i18n("<qt>Kommander file<br><b>%1</b><br>does not " - "exist.</qt>").tqarg(fname.path())); + "exist.</qt>").arg(fname.path())); return false; } @@ -220,7 +220,7 @@ bool Instance::isFileValid(const KURL& fname) const } if (!TQFileInfo(fname.path()).isExecutable()) { - if (KMessageBox::warningContinueCancel(0, i18n("<qt>The Kommander file <i>%1</i> does not have the <b>executable attribute</b> set and could possibly contain dangerous exploits.<p>If you trust the scripting (viewable in kmdr-editor) in this program, make it executable to get rid of this warning.<p>Are you sure you want to continue?</qt>").tqarg(fname.pathOrURL()), TQString(), i18n("Run Nevertheless")) == KMessageBox::Cancel) + if (KMessageBox::warningContinueCancel(0, i18n("<qt>The Kommander file <i>%1</i> does not have the <b>executable attribute</b> set and could possibly contain dangerous exploits.<p>If you trust the scripting (viewable in kmdr-editor) in this program, make it executable to get rid of this warning.<p>Are you sure you want to continue?</qt>").arg(fname.pathOrURL()), TQString(), i18n("Run Nevertheless")) == KMessageBox::Cancel) return false; } return true; @@ -431,7 +431,7 @@ TQString Instance::type(const TQString& widget) return TQString(); } -TQStringList Instance::tqchildren(const TQString& parent, bool recursive) +TQStringList Instance::children(const TQString& parent, bool recursive) { TQStringList matching; TQObject* child = stringToWidget(parent); diff --git a/kommander/executor/instance.h b/kommander/executor/instance.h index 6a0f1b7c..deed56d2 100644 --- a/kommander/executor/instance.h +++ b/kommander/executor/instance.h @@ -90,7 +90,7 @@ public: virtual void setAssociatedText(const TQString &widgetName, const TQString &text); virtual TQStringList associatedText(const TQString &widgetName); virtual TQString type(const TQString& widget); - virtual TQStringList tqchildren(const TQString& parent, bool recursive); + virtual TQStringList children(const TQString& parent, bool recursive); virtual TQString global(const TQString& variableName); virtual void setGlobal(const TQString& variableName, const TQString& value); virtual void setMaximum(const TQString &widgetName, int value); |