summaryrefslogtreecommitdiffstats
path: root/kget/kget_plug_in
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:14:03 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:14:03 -0600
commit9c9412b30c54468adc9e506cc76c5d113fbf5056 (patch)
tree68a0c0d5bc770fc58596b8c5624cdf33d8625027 /kget/kget_plug_in
parent2e53bd0b77676f879fad7baeecea5879bf496a7d (diff)
downloadtdenetwork-9c9412b30c54468adc9e506cc76c5d113fbf5056.tar.gz
tdenetwork-9c9412b30c54468adc9e506cc76c5d113fbf5056.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'kget/kget_plug_in')
-rw-r--r--kget/kget_plug_in/kget_linkview.cpp12
-rw-r--r--kget/kget_plug_in/kget_linkview.h4
-rw-r--r--kget/kget_plug_in/kget_plug_in.cpp8
-rw-r--r--kget/kget_plug_in/kget_plug_in.h2
4 files changed, 13 insertions, 13 deletions
diff --git a/kget/kget_plug_in/kget_linkview.cpp b/kget/kget_plug_in/kget_linkview.cpp
index fccb2130..8a5f69cc 100644
--- a/kget/kget_plug_in/kget_linkview.cpp
+++ b/kget/kget_plug_in/kget_linkview.cpp
@@ -38,16 +38,16 @@ LinkViewItem::LinkViewItem( TQListView *parent, const LinkItem *lnk )
///////////////////////////////////////////////////////////////////
KGetLinkView::KGetLinkView( TQWidget *parent, const char *name )
- : KMainWindow( parent, name )
+ : TDEMainWindow( parent, name )
{
setPlainCaption( i18n( "KGet" ) );
- KAction* actionDownload = new KAction( i18n("Download Selected Files"),
+ TDEAction* actionDownload = new TDEAction( i18n("Download Selected Files"),
"kget", CTRL+Key_D,
TQT_TQOBJECT(this), TQT_SLOT( slotStartLeech() ),
actionCollection(), "startDownload" );
- KAction* actionSelectAll = KStdAction::selectAll( TQT_TQOBJECT(this), TQT_SLOT( slotSelectAll() ),
+ TDEAction* actionSelectAll = KStdAction::selectAll( TQT_TQOBJECT(this), TQT_SLOT( slotSelectAll() ),
actionCollection() );
m_links.setAutoDelete( true );
@@ -59,7 +59,7 @@ KGetLinkView::KGetLinkView( TQWidget *parent, const char *name )
TQVBoxLayout *layout = new TQVBoxLayout( mainWidget );
setCentralWidget( mainWidget );
- m_view = new KListView( mainWidget, "listview" );
+ m_view = new TDEListView( mainWidget, "listview" );
m_view->setSelectionMode( TQListView::Extended );
m_view->addColumn( i18n("File Name") );
m_view->addColumn( i18n("Description") );
@@ -67,14 +67,14 @@ KGetLinkView::KGetLinkView( TQWidget *parent, const char *name )
m_view->addColumn( i18n("Location (URL)") );
m_view->setShowSortIndicator( true );
- KListViewSearchLineWidget *line = new KListViewSearchLineWidget( m_view, mainWidget, "search line" );
+ TDEListViewSearchLineWidget *line = new TDEListViewSearchLineWidget( m_view, mainWidget, "search line" );
layout->addWidget( line );
layout->addWidget( m_view );
// setting a fixed (not floating) toolbar
toolBar()->setMovingEnabled( false );
// setting Text next to Icons
- toolBar()->setIconText( KToolBar::IconTextRight );
+ toolBar()->setIconText( TDEToolBar::IconTextRight );
}
KGetLinkView::~KGetLinkView()
diff --git a/kget/kget_plug_in/kget_linkview.h b/kget/kget_plug_in/kget_linkview.h
index 74af3765..ab39541f 100644
--- a/kget/kget_plug_in/kget_linkview.h
+++ b/kget/kget_plug_in/kget_linkview.h
@@ -24,7 +24,7 @@ public:
};
-class KGetLinkView : public KMainWindow
+class KGetLinkView : public TDEMainWindow
{
Q_OBJECT
@@ -48,7 +48,7 @@ private:
TQPtrList<LinkItem> m_links;
- KListView *m_view;
+ TDEListView *m_view;
};
diff --git a/kget/kget_plug_in/kget_plug_in.cpp b/kget/kget_plug_in/kget_plug_in.cpp
index c8e5ccf2..b40f50dd 100644
--- a/kget/kget_plug_in/kget_plug_in.cpp
+++ b/kget/kget_plug_in/kget_plug_in.cpp
@@ -49,19 +49,19 @@ KGet_plug_in::KGet_plug_in( TQObject* parent, const char* name )
{
TQPixmap pix = TDEGlobal::iconLoader()->loadIcon("kget",
KIcon::MainToolbar);
- KActionMenu *menu = new KActionMenu( i18n("Download Manager"), pix,
+ TDEActionMenu *menu = new TDEActionMenu( i18n("Download Manager"), pix,
actionCollection(), "kget_menu" );
menu->setDelayed( false );
connect( menu->popupMenu(), TQT_SIGNAL( aboutToShow() ), TQT_SLOT( showPopup() ));
- m_paToggleDropTarget=new KToggleAction(i18n("Show Drop Target"),
- KShortcut(),
+ m_paToggleDropTarget=new TDEToggleAction(i18n("Show Drop Target"),
+ TDEShortcut(),
this, TQT_SLOT(slotShowDrop()),
actionCollection(), "show_drop" );
menu->insert( m_paToggleDropTarget );
- KAction *action = new KAction(i18n("List All Links"), KShortcut(),
+ TDEAction *action = new TDEAction(i18n("List All Links"), TDEShortcut(),
this, TQT_SLOT( slotShowLinks() ),
actionCollection(), "show_links");
menu->insert( action );
diff --git a/kget/kget_plug_in/kget_plug_in.h b/kget/kget_plug_in/kget_plug_in.h
index 25dd4c65..10a0d205 100644
--- a/kget/kget_plug_in/kget_plug_in.h
+++ b/kget/kget_plug_in/kget_plug_in.h
@@ -30,7 +30,7 @@ class KGet_plug_in : public KParts::Plugin
public:
KGet_plug_in( TQObject* parent = 0, const char* name = 0 );
- KToggleAction *m_paToggleDropTarget ;
+ TDEToggleAction *m_paToggleDropTarget ;
DCOPClient* p_dcopServer;
virtual ~KGet_plug_in();