summaryrefslogtreecommitdiffstats
path: root/src/tabwidget.cpp
diff options
context:
space:
mode:
authorMavridis Philippe <mavridisf@gmail.com>2021-01-13 19:34:09 +0200
committerMavridis Philippe <mavridisf@gmail.com>2021-01-13 19:34:09 +0200
commit4c04a441814c7d1dda08f6075ab4e09dc05541df (patch)
treecf8a3dbd77114c416255d3995cd1b047072ef26a /src/tabwidget.cpp
parent357ddeb8afd82d69ef871c146f4fc8f2c67fb17e (diff)
downloadklamav-4c04a441814c7d1dda08f6075ab4e09dc05541df.tar.gz
klamav-4c04a441814c7d1dda08f6075ab4e09dc05541df.zip
Conversion KDE3->TDE
Signed-off-by: Mavridis Philippe <mavridisf@gmail.com>
Diffstat (limited to 'src/tabwidget.cpp')
-rw-r--r--src/tabwidget.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/tabwidget.cpp b/src/tabwidget.cpp
index e2d4577..a001fb2 100644
--- a/src/tabwidget.cpp
+++ b/src/tabwidget.cpp
@@ -10,12 +10,12 @@
#include <tqstyle.h>
#include <tqclipboard.h>
-#include <kapplication.h>
+#include <tdeapplication.h>
#include <ktabbar.h>
-#include <kpopupmenu.h>
-#include <klocale.h>
-#include <khtmlview.h>
-#include <khtml_part.h>
+#include <tdepopupmenu.h>
+#include <tdelocale.h>
+#include <tdehtmlview.h>
+#include <tdehtml_part.h>
#include <kiconloader.h>
//#include "akregatorconfig.h"
@@ -151,7 +151,7 @@ void TabWidget::setTitle( const TQString &title , TQWidget* sender)
void TabWidget::contextMenu(int i, const TQPoint &p)
{
currentItem = page(i);
- KPopupMenu popup;
+ TDEPopupMenu popup;
//popup.insertTitle(tabLabel(currentItem));
//int detachTab = popup.insertItem( SmallIcon("tab_breakoff"), i18n("Detach Tab"), this, SLOT( slotDetachTab() ) );
//int copyLink = popup.insertItem( i18n("Copy Link Address"), this, SLOT( slotCopyLinkAddress() ) );
@@ -169,7 +169,7 @@ void TabWidget::slotDetachTab()
{
if(!currentItem) return;
KURL url;
- if (KHTMLView *view = dynamic_cast<KHTMLView*>(currentItem)) url = view->part()->url();
+ if (TDEHTMLView *view = dynamic_cast<TDEHTMLView*>(currentItem)) url = view->part()->url();
else return;
kapp->invokeBrowser(url.url(), "0");
removePage(currentItem);
@@ -181,7 +181,7 @@ void TabWidget::slotCopyLinkAddress()
{
if(!currentItem) return;
KURL url;
- if (KHTMLView *view = dynamic_cast<KHTMLView*>(currentItem)) url = view->part()->url();
+ if (TDEHTMLView *view = dynamic_cast<TDEHTMLView*>(currentItem)) url = view->part()->url();
else return;
TQClipboard *cb = TQApplication::clipboard();
if(cb) cb->setText(url.prettyURL());