aboutsummaryrefslogtreecommitdiffstats
path: root/abstractmetalang.h
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-12-29 16:36:26 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-09 19:10:13 -0300
commitb6fdc5e8e6555aa7ee2cfe709fc68725ddc68ea4 (patch)
tree4906b8ec911e73ffca1ebaf4db58623133dcd3b4 /abstractmetalang.h
parent82aaafc79c78a16717be5433e84aed3c51c4a4c8 (diff)
Add support to fix bug#493 - "__eq__ and friends not implemented for QKeyEvent == QKeySequence"
Reviewer: Renato Araújo <renato.filho@openbossa.org> Lauro Moura <lauro.neto@openbossa.org>
Diffstat (limited to 'abstractmetalang.h')
-rw-r--r--abstractmetalang.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/abstractmetalang.h b/abstractmetalang.h
index 1f1dc4855..5671d6060 100644
--- a/abstractmetalang.h
+++ b/abstractmetalang.h
@@ -799,7 +799,8 @@ public:
m_invalid(false),
m_reverse(false),
m_userAdded(false),
- m_explicit(false)
+ m_explicit(false),
+ m_pointerOperator(false)
{
}
@@ -835,6 +836,20 @@ public:
return m_reverse;
}
+ /**
+ * Returns true if this is a operator and the "self" operand is a pointer.
+ * e.g. class Foo {}; operator+(SomeEnum, Foo*);
+ */
+ bool isPointerOperator() const
+ {
+ return m_pointerOperator;
+ }
+
+ void setPointerOperator(bool value)
+ {
+ m_pointerOperator = value;
+ }
+
void setExplicit(bool isExplicit)
{
m_explicit = isExplicit;
@@ -1161,6 +1176,7 @@ private:
uint m_reverse : 1;
uint m_userAdded : 1;
uint m_explicit : 1;
+ uint m_pointerOperator : 1;
};