aboutsummaryrefslogtreecommitdiffstats
path: root/abstractmetalang.h
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2009-08-20 19:56:09 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2009-08-25 18:43:43 -0300
commita051438064f55e63d1ac00f15da1a7ba2b9f88a4 (patch)
tree1ff99133cf0e3f8247868bd81fc8e3618330278f /abstractmetalang.h
parent09a312b7788a81e0af59fc090666aea37b71fff7 (diff)
AbstractMetaClass::name() and AbstractMetaType::name() now return only
the name of the class/type without namespace/scope information
Diffstat (limited to 'abstractmetalang.h')
-rw-r--r--abstractmetalang.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/abstractmetalang.h b/abstractmetalang.h
index a7b0be1c0..e313b7b01 100644
--- a/abstractmetalang.h
+++ b/abstractmetalang.h
@@ -345,7 +345,7 @@ public:
}
QString name() const
{
- return m_typeEntry->targetLangName();
+ return QString(m_typeEntry->targetLangName()).split("::").last();
}
QString fullName() const
{
@@ -1365,7 +1365,7 @@ public:
AbstractMetaFunctionList implicitConversions() const;
/**
- * Retrives all class' operator overloads that meet
+ * Retrieves all class' operator overloads that meet
* query crieteria defined with the OperatorQueryOption
* enum.
* /param query composition of OperatorQueryOption enum values
@@ -1428,6 +1428,10 @@ public:
return package() + "." + name();
}
+ /**
+ * Retrieves the class name without any namespace/scope information.
+ * /return the class name without scope information
+ */
QString name() const;
QString baseClassName() const