From a051438064f55e63d1ac00f15da1a7ba2b9f88a4 Mon Sep 17 00:00:00 2001 From: Marcelo Lira Date: Thu, 20 Aug 2009 19:56:09 -0300 Subject: AbstractMetaClass::name() and AbstractMetaType::name() now return only the name of the class/type without namespace/scope information --- abstractmetalang.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'abstractmetalang.h') 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 -- cgit v1.2.3