bool TestProxyModel
::filterAcceptsRow ( int source_row,
const QModelIndex &source_parent
) const {
qDebug() << "&&&&entered TestProxyModel::filterAcceptsRow --> source_row is " << source_row;
qDebug() << " DisplayRole[ " << source_parent.row() << ", " << source_parent.column() << " ] = " << source_parent.data( Qt::DisplayRole).toString();
qDebug() << " FileNameRole[ " << source_parent.row() << ", " << source_parent.column() << " ] = " << source_parent.data( QFileSystemModel::FileNameRole ).toString();
qDebug() << " FilePathRole[ " << source_parent.row() << ", " << source_parent.column() << " ] = " << source_parent.data( QFileSystemModel::FilePathRole ).toString();
qDebug() << " DisplayRole[ " << source_parent.row() << ", 1 ] = " << source_parent.sibling(source_parent.row(), 1).data( Qt::DisplayRole).toString();
qDebug() << " FileNameRole[ " << source_parent.row() << ", 1 ] = " << source_parent.sibling(source_parent.row(), 1).data( QFileSystemModel::FileNameRole ).toString();
qDebug() << " FilePathRole[ " << source_parent.row() << ", 1 ] = " << source_parent.sibling(source_parent.row(), 1).data( QFileSystemModel::FilePathRole ).toString();
}
bool TestProxyModel::filterAcceptsRow ( int source_row, const QModelIndex &source_parent ) const
{
qDebug() << "&&&&entered TestProxyModel::filterAcceptsRow --> source_row is " << source_row;
qDebug() << " DisplayRole[ " << source_parent.row() << ", " << source_parent.column() << " ] = " << source_parent.data( Qt::DisplayRole).toString();
qDebug() << " FileNameRole[ " << source_parent.row() << ", " << source_parent.column() << " ] = " << source_parent.data( QFileSystemModel::FileNameRole ).toString();
qDebug() << " FilePathRole[ " << source_parent.row() << ", " << source_parent.column() << " ] = " << source_parent.data( QFileSystemModel::FilePathRole ).toString();
qDebug() << " DisplayRole[ " << source_parent.row() << ", 1 ] = " << source_parent.sibling(source_parent.row(), 1).data( Qt::DisplayRole).toString();
qDebug() << " FileNameRole[ " << source_parent.row() << ", 1 ] = " << source_parent.sibling(source_parent.row(), 1).data( QFileSystemModel::FileNameRole ).toString();
qDebug() << " FilePathRole[ " << source_parent.row() << ", 1 ] = " << source_parent.sibling(source_parent.row(), 1).data( QFileSystemModel::FilePathRole ).toString();
return QSortFilterProxyModel::filterAcceptsRow( source_row, source_parent );
}
To copy to clipboard, switch view to plain text mode
Bookmarks