Some proxy model stuff.
This commit is contained in:
parent
e3da62046f
commit
f02bef6cf2
1 changed files with 1 additions and 9 deletions
|
@ -184,7 +184,6 @@ bool FeedsProxyModel::filterAcceptsRow(int source_row, const QModelIndex &source
|
|||
return QSortFilterProxyModel::filterAcceptsRow(source_row, source_parent);
|
||||
}
|
||||
|
||||
// TODO: učechrat
|
||||
QModelIndex idx = m_sourceModel->index(source_row, 0, source_parent);
|
||||
|
||||
if (!idx.isValid()) {
|
||||
|
@ -197,14 +196,7 @@ bool FeedsProxyModel::filterAcceptsRow(int source_row, const QModelIndex &source
|
|||
// Recycle bin is always displayed.
|
||||
return true;
|
||||
}
|
||||
|
||||
/*
|
||||
if (m_selectedItem == NULL) {
|
||||
return item->countOfUnreadMessages() > 0;
|
||||
}
|
||||
*/
|
||||
|
||||
if (item->isParentOf(m_selectedItem)/* || item->isChildOf(m_selectedItem)*/ || m_selectedItem == item) {
|
||||
else if (item->isParentOf(m_selectedItem)/* || item->isChildOf(m_selectedItem)*/ || m_selectedItem == item) {
|
||||
// Currently selected item and all its parents and children must be displayed.
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue