diff options
Diffstat (limited to 'src/pageviewer.cpp')
-rw-r--r-- | src/pageviewer.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/src/pageviewer.cpp b/src/pageviewer.cpp index 2af253b..64b3265 100644 --- a/src/pageviewer.cpp +++ b/src/pageviewer.cpp @@ -17,12 +17,12 @@ #include <kpopupmenu.h> -#include <qmetaobject.h> +#include <tqmetaobject.h> #include <private/qucomextra_p.h> using namespace KlamAV; -PageViewer::PageViewer(QWidget *parent, const char *name) +PageViewer::PageViewer(TQWidget *parent, const char *name) : Viewer(parent, name) { // this hack is necessary since the part looks for []HTML Settings] in @@ -54,7 +54,7 @@ PageViewer::PageViewer(QWidget *parent, const char *name) this, SLOT(slotStop()), actionCollection(), "pageviewer_stop"); - //connect( this, SIGNAL(popupMenu(const QString &, const QPoint &)), this, SLOT(slotPopupMenu(const QString &, const QPoint &))); + //connect( this, SIGNAL(popupMenu(const TQString &, const TQPoint &)), this, SLOT(slotPopupMenu(const TQString &, const TQPoint &))); m_backAction->setEnabled(false); m_forwardAction->setEnabled(false); @@ -62,7 +62,7 @@ PageViewer::PageViewer(QWidget *parent, const char *name) connect(this, SIGNAL(started(KIO::Job *)), this, SLOT(slotStarted(KIO::Job* ))); connect(this, SIGNAL(completed()), this, SLOT(slotCompleted())); - connect(this, SIGNAL(canceled(const QString &)), this, SLOT(slotCancelled(const QString &))); + connect(this, SIGNAL(canceled(const TQString &)), this, SLOT(slotCancelled(const TQString &))); connect(browserExtension(), SIGNAL(openURLRequest(const KURL&, const KParts::URLArgs&)), @@ -107,7 +107,7 @@ void PageViewer::slotBackAboutToShow() if ( m_current == m_history.begin() ) return; - QValueList<PageViewerHistoryEntry>::Iterator it = m_current; + TQValueList<PageViewerHistoryEntry>::Iterator it = m_current; --it; int i = 0; @@ -133,7 +133,7 @@ void PageViewer::slotForwardAboutToShow() if ( m_current == m_history.fromLast() ) return; - QValueList<PageViewerHistoryEntry>::Iterator it = m_current; + TQValueList<PageViewerHistoryEntry>::Iterator it = m_current; ++it; int i = 0; @@ -173,9 +173,9 @@ bool PageViewer::openURL(const KURL &url) m_backAction->setEnabled( m_current != m_history.begin() ); m_forwardAction->setEnabled( m_current != m_history.fromLast() ); - /* QString favicon = FeedIconManager::self()->iconLocation(url); + /* TQString favicon = FeedIconManager::self()->iconLocation(url); if (!favicon.isEmpty()) - emit setTabIcon(QPixmap(KGlobal::dirs()->findResource("cache", favicon+".png"))); + emit setTabIcon(TQPixmap(KGlobal::dirs()->findResource("cache", favicon+".png"))); else emit setTabIcon(SmallIcon("html")); */ @@ -192,7 +192,7 @@ void PageViewer::slotOpenURLRequest(const KURL& url, const KParts::URLArgs& args void PageViewer::slotPopupActivated( int id ) { - QValueList<PageViewerHistoryEntry>::Iterator it = m_history.begin(); + TQValueList<PageViewerHistoryEntry>::Iterator it = m_history.begin(); while( it != m_history.end() ) { if ( (*it).id == id ) @@ -210,7 +210,7 @@ void PageViewer::slotPopupActivated( int id ) // Taken from KDevelop (lib/widgets/kdevhtmlpart.cpp) void PageViewer::addHistoryEntry(const KURL& url) { - QValueList<PageViewerHistoryEntry>::Iterator it = m_current; + TQValueList<PageViewerHistoryEntry>::Iterator it = m_current; // if We're not already the last entry, we truncate the list here before adding an entry if ( it != m_history.end() && it != m_history.fromLast() ) @@ -241,13 +241,13 @@ void PageViewer::slotCompleted( ) } // Taken from KDevelop (lib/widgets/kdevhtmlpart.cpp) -void PageViewer::slotCancelled( const QString & /*errMsg*/ ) +void PageViewer::slotCancelled( const TQString & /*errMsg*/ ) { m_stopAction->setEnabled(false); } -void PageViewer::slotSetCaption(const QString& cap) { +void PageViewer::slotSetCaption(const TQString& cap) { m_caption = cap; (*m_current).title = cap; } @@ -257,16 +257,16 @@ void PageViewer::slotPaletteOrFontChanged() //kdDebug() << "PageViewer::slotPaletteOrFontChanged()" << endl; // taken from KonqView (kdebase/konqueror/konq_view.cc) - QObject *obj = KParts::BrowserExtension::childObject(this); + TQObject *obj = KParts::BrowserExtension::childObject(this); if ( !obj ) // not all views have a browser extension ! return; int id = obj->metaObject()->findSlot("reparseConfiguration()"); if (id == -1) return; - QUObject o[1]; + TQUObject o[1]; - obj->qt_invoke(id, o); + obj->tqt_invoke(id, o); // this hack is necessary since the part looks for []HTML Settings] in // KGlobal::config() by default, which is wrong when running in Kontact @@ -285,10 +285,10 @@ void PageViewer::slotGlobalBookmarkArticle() } -void PageViewer::slotPopupMenu(KXMLGUIClient*, const QPoint& p, const KURL& kurl, const KParts::URLArgs&, KParts::BrowserExtension::PopupFlags, mode_t) +void PageViewer::slotPopupMenu(KXMLGUIClient*, const TQPoint& p, const KURL& kurl, const KParts::URLArgs&, KParts::BrowserExtension::PopupFlags, mode_t) { m_url = kurl; - QString url = kurl.url(); // maximal url confusion + TQString url = kurl.url(); // maximal url confusion // if true show popup menu for link. Maybe that doesn't work properly when using frames bool isLink = kurl != Viewer::url(); |