this code only filter the file who name is EXACTLY ".cpp", line 12 and 13
sfpm
->setFilterRegExp
(QRegExp(".cpp", Qt
::CaseInsensitive,
QRegExp::FixedString));
sfpm->setFilterRegExp(QRegExp(".cpp", Qt::CaseInsensitive,QRegExp::FixedString));
To copy to clipboard, switch view to plain text mode
this code filter all the file who suffix are "cpp",
sfpm
->setFilterRegExp
(QRegExp("*.cpp", Qt
::CaseInsensitive,
QRegExp::WildcardUnix));
sfpm->setFilterRegExp(QRegExp("*.cpp", Qt::CaseInsensitive,QRegExp::WildcardUnix));
To copy to clipboard, switch view to plain text mode
that can rewrite like ...
sfpm->setFilterCaseSensitivity(Qt::CaseInsensitive);
sfpm->setFilterWildcard ("*.cpp");
sfpm->setFilterCaseSensitivity(Qt::CaseInsensitive);
sfpm->setFilterWildcard ("*.cpp");
To copy to clipboard, switch view to plain text mode
Bookmarks