made text node filter case-insensitive

This commit is contained in:
Marc Zinnschlag 2013-08-22 15:16:22 +02:00
parent de956737fe
commit f615a9397b

View file

@ -31,7 +31,8 @@ bool CSMFilter::TextNode::test (const CSMWorld::IdTable& table, int row,
if (data.type()!=QVariant::String)
return false;
QRegExp regExp(QString::fromUtf8 (mText.c_str())); /// \todo make pattern syntax configurable
/// \todo make pattern syntax configurable
QRegExp regExp (QString::fromUtf8 (mText.c_str()), Qt::CaseInsensitive);
return regExp.exactMatch (data.toString());
}