From 63c4fb318b4b6c0c22fce659f0029e4b21112c86 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 10 Aug 2011 06:08:18 +0000 Subject: 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 --- src/kmplayer_part.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/kmplayer_part.cpp') 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)); -- cgit v1.2.1