diff options
Diffstat (limited to 'src/knowittree.cpp')
-rw-r--r-- | src/knowittree.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/knowittree.cpp b/src/knowittree.cpp index 055b1b9..b3ac8ef 100644 --- a/src/knowittree.cpp +++ b/src/knowittree.cpp @@ -22,8 +22,8 @@ #include <tqwhatsthis.h> #include "knowittree.h" -KnowitTree::KnowitTree(TQWidget* tqparent, const char* name) - : KListView(tqparent, name) +KnowitTree::KnowitTree(TQWidget* parent, const char* name) + : KListView(parent, name) { setMinimumSize(150, 150); addColumn(i18n("Notes")); @@ -44,16 +44,16 @@ KnowitTree::KnowitTree(TQWidget* tqparent, const char* name) void KnowitTree::takeNode(TQListViewItem* item) { - if (item->tqparent()) - item->tqparent()->takeItem(item); + if (item->parent()) + item->parent()->takeItem(item); else takeItem(item); } -void KnowitTree::insertNode(TQListViewItem* tqparent, TQListViewItem* item, TQListViewItem* after) +void KnowitTree::insertNode(TQListViewItem* parent, TQListViewItem* item, TQListViewItem* after) { - if (tqparent) - tqparent->insertItem(item); + if (parent) + parent->insertItem(item); else insertItem(item); if (after) @@ -133,7 +133,7 @@ void KnowitTree::slotItemEnd() void KnowitTree::slotItemLeft() { if (currentItem()) - setCurrentItem(currentItem()->tqparent()); + setCurrentItem(currentItem()->parent()); } void KnowitTree::slotItemRight() |