summaryrefslogtreecommitdiffstats
path: root/kget/kget_plug_in/kget_linkview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'kget/kget_plug_in/kget_linkview.cpp')
-rw-r--r--kget/kget_plug_in/kget_linkview.cpp38
1 files changed, 19 insertions, 19 deletions
diff --git a/kget/kget_plug_in/kget_linkview.cpp b/kget/kget_plug_in/kget_linkview.cpp
index 179cc81b..a9bab704 100644
--- a/kget/kget_plug_in/kget_linkview.cpp
+++ b/kget/kget_plug_in/kget_linkview.cpp
@@ -1,6 +1,6 @@
#include "kget_linkview.h"
-#include <qlayout.h>
+#include <tqlayout.h>
#include <dcopclient.h>
#include <kaction.h>
@@ -18,11 +18,11 @@
#define COL_MIME 2
#define COL_URL 3
-LinkViewItem::LinkViewItem( QListView *parent, const LinkItem *lnk )
- : QListViewItem( parent ),
+LinkViewItem::LinkViewItem( TQListView *parent, const LinkItem *lnk )
+ : TQListViewItem( parent ),
link( lnk )
{
- QString file = link->url.fileName();
+ TQString file = link->url.fileName();
if ( file.isEmpty() )
file = link->url.host();
@@ -37,17 +37,17 @@ LinkViewItem::LinkViewItem( QListView *parent, const LinkItem *lnk )
///////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////
-KGetLinkView::KGetLinkView( QWidget *parent, const char *name )
+KGetLinkView::KGetLinkView( TQWidget *parent, const char *name )
: KMainWindow( parent, name )
{
setPlainCaption( i18n( "KGet" ) );
KAction* actionDownload = new KAction( i18n("Download Selected Files"),
"kget", CTRL+Key_D,
- this, SLOT( slotStartLeech() ),
+ this, TQT_SLOT( slotStartLeech() ),
actionCollection(), "startDownload" );
- KAction* actionSelectAll = KStdAction::selectAll( this, SLOT( slotSelectAll() ),
+ KAction* actionSelectAll = KStdAction::selectAll( this, TQT_SLOT( slotSelectAll() ),
actionCollection() );
m_links.setAutoDelete( true );
@@ -55,12 +55,12 @@ KGetLinkView::KGetLinkView( QWidget *parent, const char *name )
toolBar()->insertLineSeparator();
actionSelectAll->plug( toolBar() );
- QWidget *mainWidget = new QWidget( this );
- QVBoxLayout *layout = new QVBoxLayout( mainWidget );
+ TQWidget *mainWidget = new TQWidget( this );
+ TQVBoxLayout *layout = new TQVBoxLayout( mainWidget );
setCentralWidget( mainWidget );
m_view = new KListView( mainWidget, "listview" );
- m_view->setSelectionMode( QListView::Extended );
+ m_view->setSelectionMode( TQListView::Extended );
m_view->addColumn( i18n("File Name") );
m_view->addColumn( i18n("Description") );
m_view->addColumn( i18n("File Type") );
@@ -81,17 +81,17 @@ KGetLinkView::~KGetLinkView()
{
}
-void KGetLinkView::setLinks( QPtrList<LinkItem>& links )
+void KGetLinkView::setLinks( TQPtrList<LinkItem>& links )
{
m_links = links; // now we 0wn them
showLinks( m_links );
}
-void KGetLinkView::showLinks( const QPtrList<LinkItem>& links )
+void KGetLinkView::showLinks( const TQPtrList<LinkItem>& links )
{
m_view->clear();
- QPtrListIterator<LinkItem> it( links );
+ TQPtrListIterator<LinkItem> it( links );
for ( ; it.current(); ++it )
(void) new LinkViewItem( m_view, *it );
@@ -101,7 +101,7 @@ void KGetLinkView::showLinks( const QPtrList<LinkItem>& links )
void KGetLinkView::slotStartLeech()
{
KURL::List urls;
- QListViewItemIterator it( m_view->firstChild() );
+ TQListViewItemIterator it( m_view->firstChild() );
for ( ; it.current(); ++it )
{
if ( it.current()->isSelected() )
@@ -123,11 +123,11 @@ void KGetLinkView::slotStartLeech()
}
kapp->updateRemoteUserTimestamp( "kget" );
- QByteArray data;
- QDataStream stream( data, IO_WriteOnly );
- stream << urls << QString::null;
+ TQByteArray data;
+ TQDataStream stream( data, IO_WriteOnly );
+ stream << urls << TQString::null;
bool ok = DCOPClient::mainClient()->send( "kget", "KGet-Interface",
- "addTransfers(KURL::List, QString)",
+ "addTransfers(KURL::List, TQString)",
data );
kdDebug() << "*** startDownload: " << ok << endl;
@@ -137,7 +137,7 @@ void KGetLinkView::slotStartLeech()
}
}
-void KGetLinkView::setPageURL( const QString& url )
+void KGetLinkView::setPageURL( const TQString& url )
{
setPlainCaption( i18n( "Links in: %1 - KGet" ).arg( url ) );
}