From 395a904bff7b4d6ead445c342f7ac0c5fbf29121 Mon Sep 17 00:00:00 2001 From: tpearson Date: Sat, 18 Jun 2011 17:00:31 +0000 Subject: TQt4 port kdeaddons This enables compilation under both Qt3 and Qt4 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdeaddons@1237404 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- konq-plugins/autorefresh/autorefresh.cpp | 8 ++++---- konq-plugins/autorefresh/autorefresh.h | 3 ++- 2 files changed, 6 insertions(+), 5 deletions(-) (limited to 'konq-plugins/autorefresh') diff --git a/konq-plugins/autorefresh/autorefresh.cpp b/konq-plugins/autorefresh/autorefresh.cpp index 64be883..bcb40f2 100644 --- a/konq-plugins/autorefresh/autorefresh.cpp +++ b/konq-plugins/autorefresh/autorefresh.cpp @@ -16,8 +16,8 @@ #include #include -AutoRefresh::AutoRefresh( TQObject* parent, const char* name, const TQStringList & /*args*/ ) - : Plugin( parent, name ) +AutoRefresh::AutoRefresh( TQObject* tqparent, const char* name, const TQStringList & /*args*/ ) + : Plugin( tqparent, name ) { timer = new TQTimer( this ); connect( timer, TQT_SIGNAL( timeout() ), this, TQT_SLOT( slotRefresh() ) ); @@ -85,7 +85,7 @@ void AutoRefresh::slotIntervalChanged() void AutoRefresh::slotRefresh() { - if ( !parent()->inherits("KParts::ReadOnlyPart") ) { + if ( !tqparent()->inherits("KParts::ReadOnlyPart") ) { TQString title = i18n( "Cannot Refresh Source" ); TQString text = i18n( "This plugin cannot auto-refresh the current part." ); @@ -93,7 +93,7 @@ void AutoRefresh::slotRefresh() } else { - KParts::ReadOnlyPart *part = (KParts::ReadOnlyPart *) parent(); + KParts::ReadOnlyPart *part = (KParts::ReadOnlyPart *) tqparent(); // Get URL KURL url = part->url(); diff --git a/konq-plugins/autorefresh/autorefresh.h b/konq-plugins/autorefresh/autorefresh.h index c72c335..04bdbdc 100644 --- a/konq-plugins/autorefresh/autorefresh.h +++ b/konq-plugins/autorefresh/autorefresh.h @@ -31,12 +31,13 @@ class TQTimer; class AutoRefresh : public KParts::Plugin { Q_OBJECT + TQ_OBJECT public: /** * Construct a new KParts plugin. */ - AutoRefresh( TQObject* parent = 0, const char* name = 0, const TQStringList &args = TQStringList() ); + AutoRefresh( TQObject* tqparent = 0, const char* name = 0, const TQStringList &args = TQStringList() ); /** * Destructor. -- cgit v1.2.1