super(parent);
}
@Override
protected boolean filterAcceptsRow(int sourceRow, QModelIndex sourceParent){
QRegExp filter = filterRegExp();
QAbstractItemModel model = sourceModel();
boolean matchFound = false;
for(int i=0; i < model.columnCount(); i++){
Object data = model.data(sourceModel().index(sourceRow, i, sourceParent));
matchFound |= data != null && filter.indexIn(data.toString()) != -1;
}
return matchFound;
}