summaryrefslogtreecommitdiffstats
path: root/klinkstatus/src/ui/treeview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'klinkstatus/src/ui/treeview.cpp')
-rw-r--r--klinkstatus/src/ui/treeview.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/klinkstatus/src/ui/treeview.cpp b/klinkstatus/src/ui/treeview.cpp
index b5d42143..1d8f546e 100644
--- a/klinkstatus/src/ui/treeview.cpp
+++ b/klinkstatus/src/ui/treeview.cpp
@@ -39,8 +39,8 @@
#include "../cfg/klsconfig.h"
-TreeView::TreeView(TQWidget *tqparent, const char *name)
- : KListView(tqparent, name),
+TreeView::TreeView(TQWidget *parent, const char *name)
+ : KListView(parent, name),
ResultView(),
current_column_(0)
{
@@ -130,20 +130,20 @@ void TreeView::show(ResultView::tqStatus const& status)
item->setVisible(true);
//item->setEnabled(true);
/*
- if(KLSConfig::displayTreeView() && status != ResultView::good && item->tqparent())
+ if(KLSConfig::displayTreeView() && status != ResultView::good && item->parent())
{
- TreeViewItem* tqparent = myItem(item->tqparent());
- while(tqparent)
+ TreeViewItem* parent = myItem(item->parent());
+ while(parent)
{
- kdDebug(23100) << "Show: " << tqparent->linktqStatus()->absoluteUrl().url() << endl;
+ kdDebug(23100) << "Show: " << parent->linktqStatus()->absoluteUrl().url() << endl;
- tqparent->setVisible(true);
- //tqparent->setEnabled(false);
+ parent->setVisible(true);
+ //parent->setEnabled(false);
- if(tqparent->tqparent())
- tqparent = myItem(tqparent->tqparent());
+ if(parent->parent())
+ parent = myItem(parent->parent());
else
- tqparent = 0;
+ parent = 0;
}
}
*/
@@ -226,7 +226,7 @@ void TreeView::slotCopyUrlToClipboard() const
void TreeView::slotCopyParentUrlToClipboard() const
{
TreeViewItem* _item = myItem(currentItem());
- TQString content(_item->linktqStatus()->tqparent()->absoluteUrl().prettyURL());
+ TQString content(_item->linktqStatus()->parent()->absoluteUrl().prettyURL());
TQClipboard* cb = kapp->tqclipboard();
cb->setText(content);
}
@@ -326,7 +326,7 @@ void TreeView::slotViewParentUrlInBrowser()
}
else
{
- LinktqStatus const* ls_parent = _item->linktqStatus()->tqparent();
+ LinktqStatus const* ls_parent = _item->linktqStatus()->parent();
Q_ASSERT(ls_parent);
KURL url = ls_parent->absoluteUrl();
@@ -392,10 +392,10 @@ TreeViewItem* TreeView::myItem(TQListViewItem* item) const
/* ******************************* TreeViewItem ******************************* */
-TreeViewItem::TreeViewItem(TreeView* tqparent, TQListViewItem* after,
+TreeViewItem::TreeViewItem(TreeView* parent, TQListViewItem* after,
LinktqStatus const* linkstatus)
- : KListViewItem(tqparent, after),
- last_child_(0), root_(tqparent)
+ : KListViewItem(parent, after),
+ last_child_(0), root_(parent)
{
init(linkstatus);
}