tests/auto/bic/qbic.cpp
branchRCL_3
changeset 13 c0432d11811c
parent 4 3b1da2848fc7
equal deleted inserted replaced
12:cc75c76972ee 13:c0432d11811c
    55     blackList.removeAll(QRegExp(wildcard, Qt::CaseSensitive, QRegExp::Wildcard));
    55     blackList.removeAll(QRegExp(wildcard, Qt::CaseSensitive, QRegExp::Wildcard));
    56 }
    56 }
    57 
    57 
    58 bool QBic::isBlacklisted(const QString &className) const
    58 bool QBic::isBlacklisted(const QString &className) const
    59 {
    59 {
       
    60     // all templates are blacklisted
       
    61     if (className.contains('<'))
       
    62         return true;
       
    63 
    60     for (int i = 0; i < blackList.count(); ++i)
    64     for (int i = 0; i < blackList.count(); ++i)
    61         if (blackList.at(i).exactMatch(className))
    65         if (blackList.at(i).exactMatch(className))
    62             return true;
    66             return true;
    63     return false;
    67     return false;
    64 }
    68 }