diff options
author | Sergio Martins <smartins@kde.org> | 2019-10-01 22:53:44 +0100 |
---|---|---|
committer | Sergio Martins <smartins@kde.org> | 2019-10-01 22:53:44 +0100 |
commit | 0bd2a0325326d46fd6e6e9d331db360f7ba09fa2 (patch) | |
tree | d5844ca17c70e78fbf2e62b694855a169c7466d6 /src | |
parent | 802310b45831387fb1a9d91fcc195b6d929a9c30 (diff) |
amend last commit with the actual fix
Diffstat (limited to 'src')
-rw-r--r-- | src/checks/manuallevel/qproperty-type-mismatch.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/checks/manuallevel/qproperty-type-mismatch.cpp b/src/checks/manuallevel/qproperty-type-mismatch.cpp index 20dd382f..ae2f7153 100644 --- a/src/checks/manuallevel/qproperty-type-mismatch.cpp +++ b/src/checks/manuallevel/qproperty-type-mismatch.cpp @@ -108,6 +108,10 @@ void QPropertyTypeMismatch::VisitTypedef(const clang::TypedefNameDecl *td) // to the Qualtypes, so catch any typedefs here QualType underlyingType = td->getUnderlyingType(); m_typedefMap[td->getQualifiedNameAsString()] = underlyingType; + m_typedefMap[td->getNameAsString()] = underlyingType; // It might be written unqualified in the Q_PROPERTY + + // FIXME: All the above is a bit flaky, as we don't know the actual namespace when the type is written without namespace in Q_PROPERTY + // Proper solution would be to process the .moc instead of doing text manipulation with the macros we receive } std::string QPropertyTypeMismatch::cleanupType(QualType type, bool unscoped) const |