From 81ad3b51a1f061b0934426aaf339917f76c0cfc5 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Sun, 18 Dec 2011 18:10:16 -0600 Subject: Rename old tq methods that no longer need a unique name --- src/kmplayerapp.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/kmplayerapp.cpp') diff --git a/src/kmplayerapp.cpp b/src/kmplayerapp.cpp index 3996635..3354f04 100644 --- a/src/kmplayerapp.cpp +++ b/src/kmplayerapp.cpp @@ -202,7 +202,7 @@ KDE_NO_CDTOR_EXPORT FileDocument::FileDocument (short i, const TQString &s, KMPl } KDE_NO_EXPORT KMPlayer::NodePtr FileDocument::childFromTag(const TQString &tag) { - if (tag == TQString::tqfromLatin1 (nodeName ())) + if (tag == TQString::fromLatin1 (nodeName ())) return this; return 0L; } @@ -246,9 +246,9 @@ KDE_NO_EXPORT void Recents::defer () { KDE_NO_EXPORT KMPlayer::NodePtr Recents::childFromTag (const TQString & tag) { // kdDebug () << nodeName () << " childFromTag " << tag << endl; - if (tag == TQString::tqfromLatin1 ("item")) + if (tag == TQString::fromLatin1 ("item")) return new Recent (m_doc, app); - else if (tag == TQString::tqfromLatin1 ("group")) + else if (tag == TQString::fromLatin1 ("group")) return new Group (m_doc, app); return FileDocument::childFromTag (tag); } @@ -282,9 +282,9 @@ Group::Group (KMPlayer::NodePtr & doc, KMPlayerApp * a, const TQString & pn) } KDE_NO_EXPORT KMPlayer::NodePtr Group::childFromTag (const TQString & tag) { - if (tag == TQString::tqfromLatin1 ("item")) + if (tag == TQString::fromLatin1 ("item")) return new Recent (m_doc, app); - else if (tag == TQString::tqfromLatin1 ("group")) + else if (tag == TQString::fromLatin1 ("group")) return new Group (m_doc, app); return 0L; } @@ -862,7 +862,7 @@ KDE_NO_EXPORT void IntroSource::activate () { TQTextStream ts (&file); KMPlayer::readXML (m_document, ts, TQString (), false); } else { - TQString smil = TQString::tqfromLatin1 ( + TQString smil = TQString::fromLatin1 ( "" "" "" @@ -882,7 +882,7 @@ KDE_NO_EXPORT void IntroSource::activate () { "" "" "" - ).arg (locate ("data", "kmplayer/noise.gif")).arg (KGlobal::iconLoader()->iconPath (TQString::tqfromLatin1 ("kmplayer"), -64)); + ).arg (locate ("data", "kmplayer/noise.gif")).arg (KGlobal::iconLoader()->iconPath (TQString::fromLatin1 ("kmplayer"), -64)); TQTextStream ts (smil.utf8 (), IO_ReadOnly); KMPlayer::readXML (m_document, ts, TQString (), false); } @@ -1165,7 +1165,7 @@ KDE_NO_EXPORT void KMPlayerApp::readOptions() { #include #undef Always #undef Never -#undef tqStatus +#undef Status #undef Unsorted #undef Bool @@ -1227,7 +1227,7 @@ KDE_NO_EXPORT void ExitSource::activate () { TQTextStream ts (&file); KMPlayer::readXML (m_document, ts, TQString (), false); } else { - TQString smil = TQString::tqfromLatin1 ("" + TQString smil = TQString::fromLatin1 ("" "" "" "" @@ -1238,7 +1238,7 @@ KDE_NO_EXPORT void ExitSource::activate () { //"" "" "" - "").arg (KGlobal::iconLoader()->iconPath (TQString::tqfromLatin1 ("kmplayer"), -64)); + "").arg (KGlobal::iconLoader()->iconPath (TQString::fromLatin1 ("kmplayer"), -64)); TQTextStream ts (smil.utf8 (), IO_ReadOnly); KMPlayer::readXML (m_document, ts, TQString (), false); } @@ -1261,7 +1261,7 @@ KDE_NO_EXPORT void ExitSource::stateElementChanged (KMPlayer::Node * node, KMPla if (new_state == KMPlayer::Node::state_deactivated && m_document == node && m_player->view ()) - m_player->view ()->tqtopLevelWidget ()->close (); + m_player->view ()->topLevelWidget ()->close (); } #endif @@ -1452,7 +1452,7 @@ KDE_NO_EXPORT void KMPlayerApp::slotStatusMsg (const TQString &text) { } KDE_NO_EXPORT void KMPlayerApp::fullScreen () { -// if (TQT_TQOBJECT(const_cast(sender ()))->tqmetaObject ()->inherits ("KAction")) +// if (TQT_TQOBJECT(const_cast(sender ()))->metaObject ()->inherits ("KAction")) if (TQT_TQOBJECT(const_cast(sender ()))->inherits ("KAction")) m_view->fullScreen(); #if KDE_IS_VERSION(3,1,90) -- cgit v1.2.1