From f7e71d47719ab6094cf4a9fafffa5ea351973522 Mon Sep 17 00:00:00 2001 From: tpearson Date: Thu, 13 Jan 2011 08:32:36 +0000 Subject: Initial conversion for TQt for Qt4 3.4.0 TP2 This will also compile with TQt for Qt3, and should not cause any problems with dependent modules such as kdebase. If it does then it needs to be fixed! git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdelibs@1214149 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kdeui/kwhatsthismanager.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'kdeui/kwhatsthismanager.cpp') diff --git a/kdeui/kwhatsthismanager.cpp b/kdeui/kwhatsthismanager.cpp index a2f3cf0f6..0ec05e5c4 100644 --- a/kdeui/kwhatsthismanager.cpp +++ b/kdeui/kwhatsthismanager.cpp @@ -26,7 +26,7 @@ KWhatsThisManager *KWhatsThisManager::s_instance = 0; -class KWhatsThisUndefined : public QWhatsThis +class KWhatsThisUndefined : public TQWhatsThis { public: KWhatsThisUndefined (TQWidget *); @@ -52,8 +52,8 @@ TQString KWhatsThisUndefined::text (const TQPoint &) " describe the widget, you are welcome to send us your own \"What's This?\" help for it."); TQString parent; - if (m_widget -> parentWidget ()) - parent = TQWhatsThis::textFor (m_widget -> parentWidget ()); + if (m_widget -> tqparentWidget ()) + parent = TQWhatsThis::textFor (m_widget -> tqparentWidget ()); if (parent != txt) if (! parent . isEmpty ()) return parent; @@ -68,11 +68,11 @@ bool KWhatsThisUndefined::clicked (const TQString& href) body . append ("Widget text: '" + (m_widget -> property ("text") . toString ()) + "'\n"); TQString dsc = TQString ("current --> ") + m_widget -> name (); dsc . append (TQString (" (") + m_widget -> className () + ")\n"); - for (w = m_widget; w && w != m_widget -> topLevelWidget (); w = w -> parentWidget ()) { + for (w = m_widget; w && w != m_widget -> tqtopLevelWidget (); w = w -> tqparentWidget ()) { dsc . append (w -> name ()); dsc . append (TQString (" (") + w -> className () + ")\n"); } - w = m_widget -> topLevelWidget (); + w = m_widget -> tqtopLevelWidget (); if (w) { dsc . append ("toplevel --> "); dsc . append (w -> name ()); @@ -80,7 +80,7 @@ bool KWhatsThisUndefined::clicked (const TQString& href) } body . append (dsc); TQString subj ("What's This submission: "); - subj . append (qApp -> argv () [0]); + subj . append (tqApp -> argv () [0]); body . append ("\nPlease type in your what's this help between these lines: " "\n--%-----------------------------------------------------------------------\n" "\n--%-----------------------------------------------------------------------"); @@ -99,7 +99,7 @@ void KWhatsThisManager::init () KWhatsThisManager::KWhatsThisManager () { // go away... - // qApp -> installEventFilter (this); + // tqApp -> installEventFilter (this); } bool KWhatsThisManager::eventFilter (TQObject * /*o*/, TQEvent *e) -- cgit v1.2.1