diff options
Diffstat (limited to 'cervisia/updateview_visitors.cpp')
-rw-r--r-- | cervisia/updateview_visitors.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cervisia/updateview_visitors.cpp b/cervisia/updateview_visitors.cpp index 0dae046b..74e7f41b 100644 --- a/cervisia/updateview_visitors.cpp +++ b/cervisia/updateview_visitors.cpp @@ -47,14 +47,14 @@ void ApplyFilterVisitor::preVisit(UpdateDirItem* item) void ApplyFilterVisitor::postVisit(UpdateDirItem* item) { // a UpdateDirItem is visible if - // - it has visible children + // - it has visible tqchildren // - it is not opened // - empty directories are not hidden - // - it has no parent (top level item) + // - it has no tqparent (top level item) const bool visible(!m_invisibleDirItems.count(item) || !item->wasScanned() || !(m_filter & UpdateView::NoEmptyDirectories) - || !item->parent()); + || !item->tqparent()); // only set invisible as TQListViewItem::setVisible() is recursive // and so maybe overrides the state applied by the filter @@ -81,7 +81,7 @@ void ApplyFilterVisitor::visit(UpdateFileItem* item) void ApplyFilterVisitor::markAllParentsAsVisible(UpdateItem* item) { - while ((item = static_cast<UpdateDirItem*>(item->parent()))) + while ((item = static_cast<UpdateDirItem*>(item->tqparent()))) { TItemSet::iterator it = m_invisibleDirItems.find(item); if (it != m_invisibleDirItems.end()) @@ -90,7 +90,7 @@ void ApplyFilterVisitor::markAllParentsAsVisible(UpdateItem* item) } else { - // if this item isn't in the map anymore all parents + // if this item isn't in the map anymore all tqparents // are already removed too break; } |