summaryrefslogtreecommitdiffstats
path: root/plugins/infowidget/fileview.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:04:44 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:04:44 -0600
commit4ba6286d9eaa3754119526dc1ac3435a341549cb (patch)
tree92749c4fa4e554fd060c8ac9aeb4d1490f05141c /plugins/infowidget/fileview.cpp
parent2cf12b3b4be272da465791312b82cfcc77704b9d (diff)
downloadktorrent-4ba6286d9eaa3754119526dc1ac3435a341549cb.tar.gz
ktorrent-4ba6286d9eaa3754119526dc1ac3435a341549cb.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'plugins/infowidget/fileview.cpp')
-rw-r--r--plugins/infowidget/fileview.cpp12
1 files changed, 6 insertions, 6 deletions
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