diff options
Diffstat (limited to 'kommander/widgets/treewidget.cpp')
-rw-r--r-- | kommander/widgets/treewidget.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/kommander/widgets/treewidget.cpp b/kommander/widgets/treewidget.cpp index d9f6b0c8..9a19d2b0 100644 --- a/kommander/widgets/treewidget.cpp +++ b/kommander/widgets/treewidget.cpp @@ -95,7 +95,7 @@ void TreeWidget::addItemFromString(const TQString& s) TQStringList elements = TQStringList::split(m_pathSeparator, s, true); if (elements.count() > 1) setRootIsDecorated(true); - TQListViewItem* tqparent = 0; + TQListViewItem* parent = 0; if (m_lastPath.size() < elements.count()) m_lastPath.resize(elements.count()); uint i = 0; @@ -103,13 +103,13 @@ void TreeWidget::addItemFromString(const TQString& s) { if (m_lastPath[i] && m_lastPath[i]->text(0) == elements[i]) { - tqparent = m_lastPath[i]; + parent = m_lastPath[i]; i++; continue; } else { - TQListViewItem* item = (i>0) ? tqparent->firstChild() : firstChild(); + TQListViewItem* item = (i>0) ? parent->firstChild() : firstChild(); while (item) { if (item->text(0) == *it) @@ -117,16 +117,16 @@ void TreeWidget::addItemFromString(const TQString& s) item = item->nextSibling(); } if (item) - tqparent = item; + parent = item; else - tqparent = itemFromString(tqparent, *it); - m_lastPath.insert(i, tqparent); + parent = itemFromString(parent, *it); + m_lastPath.insert(i, parent); i++; } } } -TQListViewItem* TreeWidget::itemFromString(TQListViewItem* tqparent, const TQString& s) +TQListViewItem* TreeWidget::itemFromString(TQListViewItem* parent, const TQString& s) { TQStringList elements; if (s.contains("\t")) @@ -137,8 +137,8 @@ TQListViewItem* TreeWidget::itemFromString(TQListViewItem* tqparent, const TQStr if (cols >= columns()) cols = columns(); TQListViewItem* item; - if (tqparent) - item = new TQListViewItem(tqparent); + if (parent) + item = new TQListViewItem(parent); else item = new TQListViewItem(this); int i = 0; @@ -219,14 +219,14 @@ TQString TreeWidget::itemPath(TQListViewItem* item) const { if (!item) return TQString(); - item = item->tqparent(); + item = item->parent(); if (!item) return TQString(); TQStringList path; while (item) { path.prepend(item->text(0)); - item = item->tqparent(); + item = item->parent(); } return path.join(m_pathSeparator); } |