summaryrefslogtreecommitdiffstats
path: root/kget/kget_plug_in/kget_linkview.cpp
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-07-31 19:48:06 +0000
commit47c8a359c5276062c4bc17f0e82410f29081b502 (patch)
tree2d54a5f60a5b74067632f9ef6df58c2bc38155e6 /kget/kget_plug_in/kget_linkview.cpp
parent6f82532777a35e0e60bbd2b290b2e93e646f349b (diff)
downloadtdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.tar.gz
tdenetwork-47c8a359c5276062c4bc17f0e82410f29081b502.zip
Trinity Qt initial conversion
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdenetwork@1157648 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
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 ) );
}