summaryrefslogtreecommitdiffstats
path: root/kpackage/packageDisplay.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:10:12 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-02-01 15:10:12 -0600
commit189e536f1a74ecc2d9dcf35b9f5b3d54a2d1901e (patch)
tree52d62ad83db1551dd15dc147b4af4cacaae6e850 /kpackage/packageDisplay.cpp
parent58cb2c2c17b1e6dd48cbfbcb69ec2f50f1ced9ee (diff)
downloadtdeadmin-189e536f1a74ecc2d9dcf35b9f5b3d54a2d1901e.tar.gz
tdeadmin-189e536f1a74ecc2d9dcf35b9f5b3d54a2d1901e.zip
Rename a number of classes to enhance compatibility with KDE4
Diffstat (limited to 'kpackage/packageDisplay.cpp')
-rw-r--r--kpackage/packageDisplay.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/kpackage/packageDisplay.cpp b/kpackage/packageDisplay.cpp
index 8941327..f416f21 100644
--- a/kpackage/packageDisplay.cpp
+++ b/kpackage/packageDisplay.cpp
@@ -181,8 +181,8 @@ void packageDisplayWidget::changePackage(packageInfo *p)
this, TQT_SLOT( openBinding(TQListViewItem *)) );
disconnect(fileList, TQT_SIGNAL(returnPressed(TQListViewItem *)),
this, TQT_SLOT( openBinding(TQListViewItem *)) );
- disconnect(fileList, TQT_SIGNAL(contextMenu(KListView *, TQListViewItem *, const TQPoint &)),
- fileList, TQT_SLOT( openContext(KListView *, TQListViewItem *, const TQPoint &)) );
+ disconnect(fileList, TQT_SIGNAL(contextMenu(TDEListView *, TQListViewItem *, const TQPoint &)),
+ fileList, TQT_SLOT( openContext(TDEListView *, TQListViewItem *, const TQPoint &)) );
if (package && package != p) {
@@ -234,8 +234,8 @@ void packageDisplayWidget::changePackage(packageInfo *p)
this, TQT_SLOT( openBinding(TQListViewItem *)) );
connect(fileList, TQT_SIGNAL(returnPressed(TQListViewItem *)),
this, TQT_SLOT( openBinding(TQListViewItem *)) );
- connect(fileList, TQT_SIGNAL(contextMenu(KListView *, TQListViewItem *, const TQPoint &)),
- fileList, TQT_SLOT( openContext(KListView *, TQListViewItem *, const TQPoint &)) );
+ connect(fileList, TQT_SIGNAL(contextMenu(TDEListView *, TQListViewItem *, const TQPoint &)),
+ fileList, TQT_SLOT( openContext(TDEListView *, TQListViewItem *, const TQPoint &)) );
}
@@ -363,15 +363,15 @@ void packageDisplayWidget::updateFileList()
kpackage->setPercent(100);
}
- kpFileList::kpFileList(TQWidget* parent, packageDisplayWidget* parent2) : KListView(parent)
+ kpFileList::kpFileList(TQWidget* parent, packageDisplayWidget* parent2) : TDEListView(parent)
{
hide();
addColumn("name");
setRootIsDecorated(TRUE);
- connect(this, TQT_SIGNAL(contextMenu(KListView *, TQListViewItem *, const TQPoint &)),
- this, TQT_SLOT( openContext(KListView *, TQListViewItem *, const TQPoint &)) );
+ connect(this, TQT_SIGNAL(contextMenu(TDEListView *, TQListViewItem *, const TQPoint &)),
+ this, TQT_SLOT( openContext(TDEListView *, TQListViewItem *, const TQPoint &)) );
- FileListMenu = new KPopupMenu();
+ FileListMenu = new TDEPopupMenu();
openwith = FileListMenu->insertItem(i18n("&Open With..."),parent2,TQT_SLOT(__openBindingWith()));
pkDisplay = parent2;
@@ -394,7 +394,7 @@ void packageDisplayWidget::updateFileList()
}
- void kpFileList::openContext(KListView *, TQListViewItem *, const TQPoint &p)
+ void kpFileList::openContext(TDEListView *, TQListViewItem *, const TQPoint &p)
{
FileListMenu->setItemEnabled(openwith,
(selectedItem() && pkDisplay->package && pkDisplay->package->getFilename().isEmpty()) ? TRUE : FALSE);
@@ -404,7 +404,7 @@ void packageDisplayWidget::updateFileList()
void kpFileList::clear()
{
- KListView::clear();
+ TDEListView::clear();
}
TQString kpFileList::item2Path(TQListViewItem *it)