summaryrefslogtreecommitdiffstats
path: root/src/kmplayer_part.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-08-10 06:08:18 +0000
commit63c4fb318b4b6c0c22fce659f0029e4b21112c86 (patch)
tree9bb206b2d90ed5fe44cea4fcb5732b6741eaaa3e /src/kmplayer_part.cpp
parent0d5a05983c0c2ba7a51bdeb1688dc232bacfa8ff (diff)
downloadkmplayer-63c4fb318b4b6c0c22fce659f0029e4b21112c86.tar.gz
kmplayer-63c4fb318b4b6c0c22fce659f0029e4b21112c86.zip
rename the following methods:
tqfind find tqreplace replace tqcontains contains git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kmplayer@1246075 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/kmplayer_part.cpp')
-rw-r--r--src/kmplayer_part.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/kmplayer_part.cpp b/src/kmplayer_part.cpp
index d701d90..63311eb 100644
--- a/src/kmplayer_part.cpp
+++ b/src/kmplayer_part.cpp
@@ -171,7 +171,7 @@ KDE_NO_CDTOR_EXPORT KMPlayerPart::KMPlayerPart (TQWidget * wtqparent, const char
TQStringList::const_iterator end = args.end ();
int turned_off_features = 0;
for ( ; it != end; ++it) {
- int equalPos = (*it).tqfind("=");
+ int equalPos = (*it).find("=");
if (equalPos > 0) {
TQString name = (*it).left (equalPos).lower ();
TQString value = (*it).right ((*it).length () - equalPos - 1);
@@ -434,7 +434,7 @@ KDE_NO_EXPORT bool KMPlayerPart::openURL (const KURL & _url) {
url = KURL (m_docbase, m_file_name); // fix misdetected SRC attr
else if (_url != m_docbase) {
url = _url;
- if (!m_file_name.isEmpty () && _url.url ().tqfind (m_file_name) < 0) {
+ if (!m_file_name.isEmpty () && _url.url ().find (m_file_name) < 0) {
KURL u (m_file_name);
if ((u.protocol () == TQString ("mms")) ||
_url.protocol ().isEmpty ()) {
@@ -878,10 +878,10 @@ KDE_NO_EXPORT void KMPlayerLiveConnectExtension::evaluate (
const TQString & scr, TQString & result) {
TQString script (scr);
KParts::LiveConnectExtension::ArgList args;
- script = script.tqreplace ('\\', "\\\\");
- script = script.tqreplace ('\n', "\\n");
- script = script.tqreplace ('\r', "");
- script = script.tqreplace ('"', "\\\"");
+ script = script.replace ('\\', "\\\\");
+ script = script.replace ('\n', "\\n");
+ script = script.replace ('\r', "");
+ script = script.replace ('"', "\\\"");
script = TQString ("this.__kmplayer__res=eval(\"%1\")").arg (script);
args.push_back(qMakePair(KParts::LiveConnectExtension::TypeString, script));