| 39 | } |
| 40 | |
| 41 | void CheckStatistics::addItem(const QString &tool, ShowTypes::ShowType type) |
| 42 | { |
| 43 | const QString lower = tool.toLower(); |
| 44 | switch (type) { |
| 45 | case ShowTypes::ShowStyle: |
| 46 | ::addItem(mStyle, lower); |
| 47 | break; |
| 48 | case ShowTypes::ShowWarnings: |
| 49 | ::addItem(mWarning, lower); |
| 50 | break; |
| 51 | case ShowTypes::ShowPerformance: |
| 52 | ::addItem(mPerformance, lower); |
| 53 | break; |
| 54 | case ShowTypes::ShowPortability: |
| 55 | ::addItem(mPortability, lower); |
| 56 | break; |
| 57 | case ShowTypes::ShowErrors: |
| 58 | ::addItem(mError, lower); |
| 59 | break; |
| 60 | case ShowTypes::ShowInformation: |
| 61 | ::addItem(mInformation, lower); |
| 62 | break; |
| 63 | case ShowTypes::ShowNone: |
| 64 | qDebug() << "Unknown error type - not added to statistics."; |
| 65 | break; |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | void CheckStatistics::addChecker(const QString &checker) |
| 70 | { |
no test coverage detected