diff options
Diffstat (limited to 'lib/util')
-rw-r--r-- | lib/util/domutil.cpp | 16 | ||||
-rw-r--r-- | lib/util/domutil.h | 2 | ||||
-rw-r--r-- | lib/util/execcommand.cpp | 4 | ||||
-rw-r--r-- | lib/util/kscriptactionmanager.cpp | 2 |
4 files changed, 12 insertions, 12 deletions
diff --git a/lib/util/domutil.cpp b/lib/util/domutil.cpp index 0c9a2491..1f148fad 100644 --- a/lib/util/domutil.cpp +++ b/lib/util/domutil.cpp @@ -260,18 +260,18 @@ TQDomElement DomUtil::elementByPathExt(TQDomDocument &doc, const TQString &paths { DomPath dompath = resolvPathStringExt(pathstring); TQDomElement elem = doc.documentElement(); - TQDomNodeList tqchildren; + TQDomNodeList children; TQDomElement nextElem = elem; for (unsigned int j=0; j<dompath.count(); j++) { - tqchildren = nextElem.childNodes(); + children = nextElem.childNodes(); DomPathElement dompathelement= dompath[j]; bool wrongchild = false; int matchCount = 0; - for (unsigned int i=0; i<tqchildren.count(); i++) + for (unsigned int i=0; i<children.count(); i++) { wrongchild = false; - TQDomElement child = tqchildren.item(i).toElement(); + TQDomElement child = children.item(i).toElement(); TQString tag = child.tagName(); tag = dompathelement.tagName; if (child.tagName() == dompathelement.tagName) @@ -339,10 +339,10 @@ bool DomUtil::removeTextNodes(TQDomDocument doc,TQString pathExt) TQDomElement elem = elementByPathExt(doc,pathExt); if (elem.isNull()) return false; - TQDomNodeList tqchildren = elem.childNodes(); - for (unsigned int i=0;i<tqchildren.count();i++) - if (tqchildren.item(i).isText()) - elem.removeChild(tqchildren.item(i)); + TQDomNodeList children = elem.childNodes(); + for (unsigned int i=0;i<children.count();i++) + if (children.item(i).isText()) + elem.removeChild(children.item(i)); return true; } diff --git a/lib/util/domutil.h b/lib/util/domutil.h index ea28a407..7856e3c6 100644 --- a/lib/util/domutil.h +++ b/lib/util/domutil.h @@ -168,7 +168,7 @@ public: Retrieve an element specified with extended path examples: - - 1: "widget|class=TQDialog/property|name=tqgeometry" + - 1: "widget|class=TQDialog/property|name=geometry" or "widget|class=TQDialog/property||1" - 2: "widget/property|name=caption/string" or "widget/property||2/string" diff --git a/lib/util/execcommand.cpp b/lib/util/execcommand.cpp index b3d83746..62eb5924 100644 --- a/lib/util/execcommand.cpp +++ b/lib/util/execcommand.cpp @@ -49,7 +49,7 @@ ExecCommand::ExecCommand( const TQString& executable, const TQStringList& args, bool ok = proc->start( KProcess::NotifyOnExit, KProcess::AllOutput ); if ( !ok ) { - KMessageBox::error( 0, i18n("Could not invoke \"%1\". Please make sure it is installed correctly").tqarg( executable ), + KMessageBox::error( 0, i18n("Could not invoke \"%1\". Please make sure it is installed correctly").arg( executable ), i18n("Error Invoking Command") ); emit finished( TQString(), TQString() ); @@ -57,7 +57,7 @@ ExecCommand::ExecCommand( const TQString& executable, const TQStringList& args, } else { progressDlg = new KProgressDialog( 0, 0, i18n("Command running..."), - i18n("Please wait until the \"%1\" command finishes.").tqarg( executable ), false ); + i18n("Please wait until the \"%1\" command finishes.").arg( executable ), false ); connect( progressDlg, TQT_SIGNAL(cancelClicked()), this, TQT_SLOT(cancelClicked()) ); } diff --git a/lib/util/kscriptactionmanager.cpp b/lib/util/kscriptactionmanager.cpp index 3c906902..ffc3a536 100644 --- a/lib/util/kscriptactionmanager.cpp +++ b/lib/util/kscriptactionmanager.cpp @@ -95,7 +95,7 @@ void KScriptAction::activate( ) } else { - KMessageBox::sorry(0, i18n("Unable to get KScript Runner for type \"%1\".").tqarg(m_scriptType), i18n("KScript Error")); + KMessageBox::sorry(0, i18n("Unable to get KScript Runner for type \"%1\".").arg(m_scriptType), i18n("KScript Error")); kdDebug() << "Query string: " << scriptTypeQuery << endl; return; } |