summaryrefslogtreecommitdiffstats
path: root/konq-plugins/autorefresh
diff options
context:
space:
mode:
Diffstat (limited to 'konq-plugins/autorefresh')
-rw-r--r--konq-plugins/autorefresh/autorefresh.cpp8
-rw-r--r--konq-plugins/autorefresh/autorefresh.h3
2 files changed, 6 insertions, 5 deletions
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 <tqtimer.h>
#include <kgenericfactory.h>
-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( "<qt>This plugin cannot auto-refresh the current part.</qt>" );
@@ -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.