Mercurial > projects > qtd
comparison generator/typesystem.h @ 361:beaf4a2974d7
Autogeneration of QMetaType. First attempts at fixing qRegisterMetaType etc
author | Max Samukha <maxter@maxter.com> |
---|---|
date | Wed, 09 Jun 2010 11:08:56 +0300 |
parents | 5896535a03cd |
children |
comparison
equal
deleted
inserted
replaced
360:49d0a43433e7 | 361:beaf4a2974d7 |
---|---|
71 LocalPath, | 71 LocalPath, |
72 TargetLangImport | 72 TargetLangImport |
73 }; | 73 }; |
74 | 74 |
75 Include() : type(IncludePath) { } | 75 Include() : type(IncludePath) { } |
76 Include(IncludeType t, const QString &nam) : type(t), name(nam) { }; | 76 Include(IncludeType t, const QString prot, const QString &nam) : |
77 type(t), | |
78 protection(prot), | |
79 name(nam) { }; | |
80 | |
81 Include(IncludeType t, const QString &nam) : | |
82 type(t), | |
83 protection(QString()), | |
84 name(nam) { }; | |
77 | 85 |
78 bool isValid() { return !name.isEmpty(); } | 86 bool isValid() { return !name.isEmpty(); } |
79 | 87 |
80 IncludeType type; | 88 IncludeType type; |
81 QString name; | 89 QString name; |
90 QString protection; | |
82 | 91 |
83 QString toString() const; | 92 QString toString() const; |
84 | 93 |
85 bool operator<(const Include &other) const { return name < other.name; } | 94 bool operator<(const Include &other) const { return name < other.name; } |
86 }; | 95 }; |