diff options
Diffstat (limited to 'plugins/infowidget')
-rw-r--r-- | plugins/infowidget/chunkdownloadview.cpp | 4 | ||||
-rw-r--r-- | plugins/infowidget/chunkdownloadview.h | 4 | ||||
-rw-r--r-- | plugins/infowidget/chunkdownloadviewbase.ui | 2 | ||||
-rw-r--r-- | plugins/infowidget/fileview.cpp | 12 | ||||
-rw-r--r-- | plugins/infowidget/fileview.h | 6 | ||||
-rw-r--r-- | plugins/infowidget/iwfiletreediritem.cpp | 2 | ||||
-rw-r--r-- | plugins/infowidget/iwfiletreediritem.h | 2 | ||||
-rw-r--r-- | plugins/infowidget/peerview.cpp | 12 | ||||
-rw-r--r-- | plugins/infowidget/peerview.h | 8 | ||||
-rw-r--r-- | plugins/infowidget/trackerviewbase.ui | 2 |
10 files changed, 27 insertions, 27 deletions
diff --git a/plugins/infowidget/chunkdownloadview.cpp b/plugins/infowidget/chunkdownloadview.cpp index a19dc78..0a93f14 100644 --- a/plugins/infowidget/chunkdownloadview.cpp +++ b/plugins/infowidget/chunkdownloadview.cpp @@ -31,8 +31,8 @@ using namespace kt; namespace kt { - ChunkDownloadViewItem::ChunkDownloadViewItem(KListView* cdv,kt::ChunkDownloadInterface* cd) - : KListViewItem(cdv),cd(cd) + ChunkDownloadViewItem::ChunkDownloadViewItem(TDEListView* cdv,kt::ChunkDownloadInterface* cd) + : TDEListViewItem(cdv),cd(cd) { update(); } diff --git a/plugins/infowidget/chunkdownloadview.h b/plugins/infowidget/chunkdownloadview.h index af6b109..cb30800 100644 --- a/plugins/infowidget/chunkdownloadview.h +++ b/plugins/infowidget/chunkdownloadview.h @@ -29,11 +29,11 @@ namespace kt class ChunkDownloadInterface; class ChunkDownloadView; - class ChunkDownloadViewItem : public KListViewItem + class ChunkDownloadViewItem : public TDEListViewItem { kt::ChunkDownloadInterface* cd; public: - ChunkDownloadViewItem(KListView* cdv,kt::ChunkDownloadInterface* cd); + ChunkDownloadViewItem(TDEListView* cdv,kt::ChunkDownloadInterface* cd); void update(); int compare(TQListViewItem * i,int col,bool) const; diff --git a/plugins/infowidget/chunkdownloadviewbase.ui b/plugins/infowidget/chunkdownloadviewbase.ui index a68b412..6ad04d8 100644 --- a/plugins/infowidget/chunkdownloadviewbase.ui +++ b/plugins/infowidget/chunkdownloadviewbase.ui @@ -274,7 +274,7 @@ </spacer> </hbox> </widget> - <widget class="KListView"> + <widget class="TDEListView"> <column> <property name="text"> <string>Chunk</string> diff --git a/plugins/infowidget/fileview.cpp b/plugins/infowidget/fileview.cpp index 25d910b..b61afaa 100644 --- a/plugins/infowidget/fileview.cpp +++ b/plugins/infowidget/fileview.cpp @@ -41,7 +41,7 @@ namespace kt { FileView::FileView(TQWidget *parent, const char *name) - : KListView(parent, name),curr_tc(0),multi_root(0),pending_fill(0),next_fill_item(0) + : TDEListView(parent, name),curr_tc(0),multi_root(0),pending_fill(0),next_fill_item(0) { setFrameShape(TQFrame::NoFrame); addColumn( i18n( "File" ) ); @@ -51,7 +51,7 @@ namespace kt addColumn( i18n( "% Complete" ) ); setShowSortIndicator(true); - context_menu = new KPopupMenu(this); + context_menu = new TDEPopupMenu(this); preview_id = context_menu->insertItem(SmallIcon("fileopen"),i18n("Open")); context_menu->insertSeparator(); first_id = context_menu->insertItem(i18n("Download First")); @@ -69,8 +69,8 @@ namespace kt context_menu->setItemEnabled(dnd_keep_id, false); context_menu->setItemEnabled(dnd_throw_away_id, false); - connect(this,TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint& )), - this,TQT_SLOT(showContextMenu(KListView*, TQListViewItem*, const TQPoint& ))); + connect(this,TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint& )), + this,TQT_SLOT(showContextMenu(TDEListView*, TQListViewItem*, const TQPoint& ))); connect(context_menu, TQT_SIGNAL ( activated ( int ) ), this, TQT_SLOT ( contextItem ( int ) ) ); connect(this,TQT_SIGNAL(doubleClicked( TQListViewItem*, const TQPoint&, int )), this,TQT_SLOT(onDoubleClicked(TQListViewItem*, const TQPoint&, int))); @@ -134,7 +134,7 @@ namespace kt { const TorrentStats & s = curr_tc->getStats(); this->setRootIsDecorated(false); - KListViewItem* item = new KListViewItem( + TDEListViewItem* item = new TDEListViewItem( this, s.torrent_name, BytesToString(s.total_bytes)); @@ -211,7 +211,7 @@ namespace kt } } - void FileView::showContextMenu(KListView* ,TQListViewItem*,const TQPoint & p) + void FileView::showContextMenu(TDEListView* ,TQListViewItem*,const TQPoint & p) { const TorrentStats & s = curr_tc->getStats(); // don't show a menu if item is 0 or if it is a directory diff --git a/plugins/infowidget/fileview.h b/plugins/infowidget/fileview.h index 826cab9..604b710 100644 --- a/plugins/infowidget/fileview.h +++ b/plugins/infowidget/fileview.h @@ -32,7 +32,7 @@ namespace kt /** @author Joris Guisson <joris.guisson@gmail.com> */ - class FileView : public KListView + class FileView : public TDEListView { Q_OBJECT @@ -44,7 +44,7 @@ namespace kt void changeTC(kt::TorrentInterface* tc); private slots: void contextItem(int id); - void showContextMenu(KListView* ,TQListViewItem* item,const TQPoint & p); + void showContextMenu(TDEListView* ,TQListViewItem* item,const TQPoint & p); void refreshFileTree(kt::TorrentInterface* tc); void onDoubleClicked(TQListViewItem* item,const TQPoint & ,int ); void fillTreePartial(); @@ -59,7 +59,7 @@ namespace kt kt::TorrentInterface* curr_tc; IWFileTreeDirItem* multi_root; bool pending_fill; - KPopupMenu* context_menu; + TDEPopupMenu* context_menu; TQString preview_path; TQTimer fill_timer; int preview_id; diff --git a/plugins/infowidget/iwfiletreediritem.cpp b/plugins/infowidget/iwfiletreediritem.cpp index 2abd159..bb6b821 100644 --- a/plugins/infowidget/iwfiletreediritem.cpp +++ b/plugins/infowidget/iwfiletreediritem.cpp @@ -33,7 +33,7 @@ using namespace kt; namespace kt { - IWFileTreeDirItem::IWFileTreeDirItem(KListView* klv,const TQString & name) + IWFileTreeDirItem::IWFileTreeDirItem(TDEListView* klv,const TQString & name) : kt::FileTreeDirItem(klv,name) { } diff --git a/plugins/infowidget/iwfiletreediritem.h b/plugins/infowidget/iwfiletreediritem.h index 1439cbe..4a1cd4c 100644 --- a/plugins/infowidget/iwfiletreediritem.h +++ b/plugins/infowidget/iwfiletreediritem.h @@ -49,7 +49,7 @@ namespace kt class IWFileTreeDirItem : public kt::FileTreeDirItem { public: - IWFileTreeDirItem(KListView* klv,const TQString & name); + IWFileTreeDirItem(TDEListView* klv,const TQString & name); IWFileTreeDirItem(IWFileTreeDirItem* parent,const TQString & name); virtual ~IWFileTreeDirItem(); diff --git a/plugins/infowidget/peerview.cpp b/plugins/infowidget/peerview.cpp index 6d163e4..a304193 100644 --- a/plugins/infowidget/peerview.cpp +++ b/plugins/infowidget/peerview.cpp @@ -61,7 +61,7 @@ namespace kt static bool geoip_db_exists = true; static TQString geoip_data_file; - PeerViewItem::PeerViewItem(PeerView* pv,kt::PeerInterface* peer) : KListViewItem(pv),peer(peer) + PeerViewItem::PeerViewItem(PeerView* pv,kt::PeerInterface* peer) : TDEListViewItem(pv),peer(peer) { if (!yes_no_pix_loaded) { @@ -208,7 +208,7 @@ namespace kt } PeerView::PeerView(TQWidget *parent, const char *name) - : KListView(parent, name) + : TDEListView(parent, name) { addColumn(i18n("IP")); addColumn(i18n("Country")); @@ -245,12 +245,12 @@ namespace kt setShowSortIndicator(true); - menu = new KPopupMenu(this); + menu = new TDEPopupMenu(this); kick_id = menu->insertItem(TDEGlobal::iconLoader()->loadIcon("delete_user", KIcon::NoGroup), i18n("to kick", "Kick peer")); ban_id = menu->insertItem(TDEGlobal::iconLoader()->loadIcon("filter",KIcon::NoGroup), i18n("to ban", "Ban peer")); - connect(this,TQT_SIGNAL(contextMenu(KListView*, TQListViewItem*, const TQPoint& )), - this,TQT_SLOT(showContextMenu(KListView*, TQListViewItem*, const TQPoint& ))); + connect(this,TQT_SIGNAL(contextMenu(TDEListView*, TQListViewItem*, const TQPoint& )), + this,TQT_SLOT(showContextMenu(TDEListView*, TQListViewItem*, const TQPoint& ))); connect(menu, TQT_SIGNAL ( activated ( int ) ), this, TQT_SLOT ( contextItem ( int ) ) ); setFrameShape(TQFrame::NoFrame); } @@ -330,7 +330,7 @@ namespace kt clear(); } - void PeerView::showContextMenu( KListView*, TQListViewItem* item, const TQPoint& p) + void PeerView::showContextMenu( TDEListView*, TQListViewItem* item, const TQPoint& p) { if(!item) return; diff --git a/plugins/infowidget/peerview.h b/plugins/infowidget/peerview.h index f7a293b..6b5af44 100644 --- a/plugins/infowidget/peerview.h +++ b/plugins/infowidget/peerview.h @@ -32,7 +32,7 @@ namespace kt class PeerInterface; class PeerView; - class PeerViewItem : public KListViewItem + class PeerViewItem : public TDEListViewItem { kt::PeerInterface* peer; TQString m_country; @@ -52,7 +52,7 @@ namespace kt /** @author Joris Guisson */ - class PeerView : public KListView + class PeerView : public TDEListView { Q_OBJECT @@ -69,10 +69,10 @@ namespace kt void kickPeer(kt::PeerInterface* peer); void update(); void removeAll(); - void showContextMenu(KListView* ,TQListViewItem* item,const TQPoint & p); + void showContextMenu(TDEListView* ,TQListViewItem* item,const TQPoint & p); void contextItem(int id); private: - KPopupMenu* menu; + TDEPopupMenu* menu; int ban_id; int kick_id; PeerViewItem* curr; diff --git a/plugins/infowidget/trackerviewbase.ui b/plugins/infowidget/trackerviewbase.ui index 24d92c2..0f951bf 100644 --- a/plugins/infowidget/trackerviewbase.ui +++ b/plugins/infowidget/trackerviewbase.ui @@ -105,7 +105,7 @@ </widget> </vbox> </widget> - <widget class="KListView" row="2" column="0"> + <widget class="TDEListView" row="2" column="0"> <column> <property name="text"> <string>Trackers</string> |