class Vizkit::TaskSortFilterProxyModel

Public Instance Methods

filterAcceptsRow(source_row, source_parent) click to toggle source
# File lib/vizkit/tree_view.rb, line 80
def filterAcceptsRow(source_row, source_parent)
    source_index = sourceModel.index(source_row, 0, source_parent)
    return false unless source_index.isValid
    item = sourceModel.itemFromIndex(source_index)
    if item.is_a?(Vizkit::TaskContextItem) && !filterRegExp.pattern.nil?
        return item.task.basename.include? filterRegExp.pattern
    end
    return true
end