tests/auto/bic/qbic.cpp
changeset 23 89e065397ea6
parent 18 2f34d5167611
equal deleted inserted replaced
22:79de32ba3296 23:89e065397ea6
    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 }