summaryrefslogtreecommitdiffstats
path: root/quanta/parts/preview/whtmlpart.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'quanta/parts/preview/whtmlpart.cpp')
-rw-r--r--quanta/parts/preview/whtmlpart.cpp28
1 files changed, 14 insertions, 14 deletions
diff --git a/quanta/parts/preview/whtmlpart.cpp b/quanta/parts/preview/whtmlpart.cpp
index 47c1ca70..068bc9d3 100644
--- a/quanta/parts/preview/whtmlpart.cpp
+++ b/quanta/parts/preview/whtmlpart.cpp
@@ -33,11 +33,11 @@
#include "whtmlpart.h"
#include "resource.h"
-WHTMLPart::WHTMLPart(TQWidget *parentWidget, const char *widgetName, bool enableViewSource,
- TQObject *parent, const char *name, GUIProfile prof)
- : KHTMLPart(parentWidget, widgetName, parent, name, prof), m_contextMenu(0)
+WHTMLPart::WHTMLPart(TQWidget *tqparentWidget, const char *widgetName, bool enableViewSource,
+ TQObject *tqparent, const char *name, GUIProfile prof)
+ : KHTMLPart(tqparentWidget, widgetName, tqparent, name, prof), m_contextMenu(0)
{
- //kdDebug(24000) << "WHTMLPart: " << parentWidget << " " << widgetName << " " << parent << " " << name << this << endl;
+ //kdDebug(24000) << "WHTMLPart: " << tqparentWidget << " " << widgetName << " " << tqparent << " " << name << this << endl;
hpos = 0;
// get settings from konq.
KConfig konqConfig("konquerorrc");
@@ -52,7 +52,7 @@ WHTMLPart::WHTMLPart(TQWidget *parentWidget, const char *widgetName, bool enable
m_enableViewSource = enableViewSource;
if (m_enableViewSource)
{
- m_contextMenu = new KPopupMenu(parentWidget);
+ m_contextMenu = new KPopupMenu(tqparentWidget);
m_contextMenu->insertItem(i18n("View &Document Source"), this, TQT_SLOT(slotViewSource()));
connect(this, TQT_SIGNAL(popupMenu(const TQString&, const TQPoint&)), TQT_SLOT(popupMenu(const TQString&, const TQPoint&)));
@@ -103,7 +103,7 @@ void WHTMLPart::forward()
hpos++;
openURL( KURL( history.at(hpos) ) );
- emit updateStatus( backEnable() , forwardEnable() );
+ emit updatetqStatus( backEnable() , forwardEnable() );
}
}
@@ -115,7 +115,7 @@ void WHTMLPart::back()
hpos--;
openURL(KURL(history.at(hpos)));
- emit updateStatus(backEnable(), forwardEnable());
+ emit updatetqStatus(backEnable(), forwardEnable());
}
}
@@ -133,7 +133,7 @@ void WHTMLPart::addToHistory(const TQString &url)
hpos = history.count()-1;
- emit updateStatus( backEnable() , forwardEnable() );
+ emit updatetqStatus( backEnable() , forwardEnable() );
}
@@ -149,21 +149,21 @@ bool WHTMLPart::forwardEnable()
return hpos < history.count()-1;
}
-KParts::ReadOnlyPart *WHTMLPart::createPart( TQWidget * parentWidget, const char *widgetName,
- TQObject *parent, const char *name,
+KParts::ReadOnlyPart *WHTMLPart::createPart( TQWidget * tqparentWidget, const char *widgetName,
+ TQObject *tqparent, const char *name,
const TQString &, TQString &,
TQStringList &, const TQStringList &)
{
- //kdDebug(24000) << "Create WHTMLPart: " << parentWidget << " " << widgetName << " " << parent << " " << name << endl;
- return new WHTMLPart(parentWidget, widgetName, m_enableViewSource, parent, name);
+ //kdDebug(24000) << "Create WHTMLPart: " << tqparentWidget << " " << widgetName << " " << tqparent << " " << name << endl;
+ return new WHTMLPart(tqparentWidget, widgetName, m_enableViewSource, tqparent, name);
}
bool WHTMLPart::eventFilter(TQObject *watched, TQEvent *e)
{
- if (watched == view() && e->type() == TQEvent::FocusOut && (!m_contextMenu || !m_contextMenu->hasFocus()))
+ if (TQT_BASE_OBJECT(watched) == TQT_BASE_OBJECT(view()) && e->type() == TQEvent::FocusOut && (!m_contextMenu || !m_contextMenu->hasFocus()))
emit previewHasFocus(false);
else
- if (watched == view() && e->type() == TQEvent::FocusIn)
+ if (TQT_BASE_OBJECT(watched) == TQT_BASE_OBJECT(view()) && e->type() == TQEvent::FocusIn)
emit previewHasFocus(true);
return false;
}