diff options
author | Hugo Parente Lima <hugo.lima@openbossa.org> | 2010-04-13 21:12:14 -0300 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-09 19:09:59 -0300 |
commit | 5325b5ba762865ad63e76595cf3e7c0562a7f76b (patch) | |
tree | ca76747a56856a9a1ab902d9f90ce1e20de1ad9d /typesystem.cpp | |
parent | c3e111369e3c4a60455fe5667d0adce341867dea (diff) |
Added qHash, operator<<(QTextStream,Include) and operator== to class Include.
Diffstat (limited to 'typesystem.cpp')
-rw-r--r-- | typesystem.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/typesystem.cpp b/typesystem.cpp index 837a0e0d0..4f696c10c 100644 --- a/typesystem.cpp +++ b/typesystem.cpp @@ -2239,6 +2239,18 @@ QString ContainerTypeEntry::typeName() const } } +uint qHash(const Include& inc) +{ + return qHash(inc.name); +} + +QTextStream& operator<<(QTextStream& out, const Include& include) +{ + if (include.isValid()) + out << include.toString() << endl; + return out; +} + /* static void injectCode(ComplexTypeEntry *e, const char *signature, |