summaryrefslogtreecommitdiffstats
path: root/abstractmetabuilder.h
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2010-09-29 10:46:48 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:11 -0300
commit7c1048b86bc76e68f728e4819fe832d17276bfe6 (patch)
tree1f0e7211d9948af5c6a48c38fde7794e21eabdce /abstractmetabuilder.h
parent0f84794301386a9371c374e5ed062fc000c96f17 (diff)
Improved resolution of enum value attributions.
In particular when an enum item is set to the value of an item from other enum. The code for this was moved to the method AbstractMetaBuilder::findOutValueFromString. Tests were added as well. s# ../tests/.testenum.h.swp
Diffstat (limited to 'abstractmetabuilder.h')
-rw-r--r--abstractmetabuilder.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/abstractmetabuilder.h b/abstractmetabuilder.h
index 8b29009..d45b34a 100644
--- a/abstractmetabuilder.h
+++ b/abstractmetabuilder.h
@@ -149,6 +149,8 @@ public:
AbstractMetaType* translateType(double vr, const AddedFunction::TypeInfo& typeInfo);
AbstractMetaType *translateType(const TypeInfo &type, bool *ok, bool resolveType = true, bool resolveScope = true);
+ int findOutValueFromString(const QString& stringValue, bool& ok);
+
void decideUsagePattern(AbstractMetaType *type);
const AbstractMetaFunctionList globalFunctions() const