diff options
Diffstat (limited to 'konq-plugins/akregator/akregatorplugin.cpp')
-rw-r--r-- | konq-plugins/akregator/akregatorplugin.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/konq-plugins/akregator/akregatorplugin.cpp b/konq-plugins/akregator/akregatorplugin.cpp index 2f59adc..4402cd4 100644 --- a/konq-plugins/akregator/akregatorplugin.cpp +++ b/konq-plugins/akregator/akregatorplugin.cpp @@ -65,8 +65,8 @@ AkregatorMenu::AkregatorMenu( KonqPopupMenu * popupmenu, const char *name, const KHTMLView* view = 0L; - if (popupmenu && popupmenu->parent() && popupmenu->parent()->inherits("KHTMLView")) - view = static_cast<KHTMLView*>(popupmenu->parent()); + if (popupmenu && popupmenu->tqparent() && popupmenu->tqparent()->inherits("KHTMLView")) + view = static_cast<KHTMLView*>(TQT_TQWIDGET(popupmenu->tqparent())); if (view) m_part = view->part(); @@ -85,7 +85,7 @@ AkregatorMenu::AkregatorMenu( KonqPopupMenu * popupmenu, const char *name, const { kdDebug() << "AkregatorMenu: found feed URL " << it->url().prettyURL() << endl; KAction *action = new KAction( i18n( "Add Feed to Akregator" ), "akregator", 0, this, TQT_SLOT( slotAddFeed() ), actionCollection(), "akregatorkonqplugin_mnu" ); - addAction( action ); + tqaddAction( action ); addSeparator(); m_feedURL = it->url().url(); break; @@ -103,16 +103,16 @@ AkregatorMenu::~AkregatorMenu() bool AkregatorMenu::isFeedUrl(const TQString &url) { - if (url.contains(".htm", false) != 0) return false; - if (url.contains("rss", false) != 0) return true; - if (url.contains("rdf", false) != 0) return true; - if (url.contains("xml", false) != 0) return true; + if (url.tqcontains(".htm", false) != 0) return false; + if (url.tqcontains("rss", false) != 0) return true; + if (url.tqcontains("rdf", false) != 0) return true; + if (url.tqcontains("xml", false) != 0) return true; return false; } bool AkregatorMenu::isFeedUrl(const KFileItem * item) { - if ( m_feedMimeTypes.contains( item->mimetype() ) ) + if ( m_feedMimeTypes.tqcontains( item->mimetype() ) ) return true; else { |