| 77 | } |
| 78 | |
| 79 | CMakeDocumentation::Type CMakeCommandsContents::typeFor(const QString& identifier) const |
| 80 | { |
| 81 | //TODO can do much better |
| 82 | if(m_typeForName.contains(identifier)) { |
| 83 | return m_typeForName[identifier]; |
| 84 | } else if(m_typeForName.contains(identifier.toLower())) { |
| 85 | return m_typeForName[identifier.toLower()]; |
| 86 | } else if(m_typeForName.contains(identifier.toUpper())) { |
| 87 | return m_typeForName[identifier.toUpper()]; |
| 88 | } |
| 89 | return CMakeDocumentation::EOType; |
| 90 | } |
| 91 | |
| 92 | QString CMakeCommandsContents::descriptionForIdentifier(const QString& id, CMakeDocumentation::Type t) const |
| 93 | { |