'Reimplement Qt method'

def filterAcceptsRow(self, row, parent_index):

    if (self.root_path is None):
        return True
    index = self.sourceModel().index(row, 0, parent_index)
    path = osp.normpath(to_text_string(self.sourceModel().filePath(index)))
    if self.root_path.startswith(path):
        return True
    else:
        for p in self.path_list:
            if ((path == p) or path.startswith((p + os.sep))):
                return True
        else:
            return False
