aboutsummaryrefslogtreecommitdiffstats
path: root/abstractmetalang.h
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-09-30 17:30:23 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:11 -0300
commit35c500c84b6be8f400f8cd1029c528172bca49c7 (patch)
tree064c1bc9f8866fe14245618aeac8988cf8954a6c /abstractmetalang.h
parent128c833f6b51a3709a2b0162f639121981389af2 (diff)
Add toStringCapability attribute to AbstractMetaClass.
This capatility indicates that the given type has a QDebug::operator<< function, so it's only useful when using PySide extensions. Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'abstractmetalang.h')
-rw-r--r--abstractmetalang.h25
1 files changed, 12 insertions, 13 deletions
diff --git a/abstractmetalang.h b/abstractmetalang.h
index 7a5b90228..333aaf3cb 100644
--- a/abstractmetalang.h
+++ b/abstractmetalang.h
@@ -1382,13 +1382,13 @@ public:
m_hasEqualsOperator(false),
m_hasCloneOperator(false),
m_isTypeAlias(false),
+ m_hasToStringCapability(false),
m_enclosingClass(0),
m_baseClass(0),
m_templateBaseClass(0),
m_extractedInterface(0),
m_primaryInterfaceImplementor(0),
m_typeEntry(0),
- //m_qDebugStreamFunction(0)
m_stream(false)
{
}
@@ -1717,17 +1717,6 @@ public:
{
return m_hasHashFunction;
}
-#if 0
- void setToStringCapability(FunctionModelItem fun)
- {
- m_qDebugStreamFunction = fun;
- }
-
- FunctionModelItem hasToStringCapability() const
- {
- return m_qDebugStreamFunction;
- }
-#endif
virtual bool hasDefaultToStringFunction() const;
void setHasEqualsOperator(bool on)
@@ -1875,6 +1864,15 @@ public:
return m_stream;
}
+ void setToStringCapability(bool value)
+ {
+ m_hasToStringCapability = value;
+ }
+
+ bool hasToStringCapability() const
+ {
+ return m_hasToStringCapability;
+ }
private:
uint m_namespace : 1;
uint m_qobject : 1;
@@ -1892,7 +1890,8 @@ private:
uint m_hasEqualsOperator : 1;
uint m_hasCloneOperator : 1;
uint m_isTypeAlias : 1;
- uint m_reserved : 18;
+ uint m_hasToStringCapability : 1;
+ uint m_reserved : 17;
const AbstractMetaClass *m_enclosingClass;
AbstractMetaClass *m_baseClass;