summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-08-15 09:05:26 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2014-08-15 09:05:26 (GMT)
commit392b48a25e4315528fbb11a5a1bfc9f2bca791c0 (patch)
treeb52c540d1b87c3c7ae28c1930bc73322ed368aae
parentc3ddf3331239fb3f41e502a8337eee786ceaad06 (diff)
downloadDoxygen-392b48a25e4315528fbb11a5a1bfc9f2bca791c0.zip
Doxygen-392b48a25e4315528fbb11a5a1bfc9f2bca791c0.tar.gz
Doxygen-392b48a25e4315528fbb11a5a1bfc9f2bca791c0.tar.bz2
Bug 734245 - Q_PROPERTY switches the member access from private to public
-rw-r--r--src/scanner.l5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/scanner.l b/src/scanner.l
index 5b698cc..8370f13 100644
--- a/src/scanner.l
+++ b/src/scanner.l
@@ -2245,7 +2245,7 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
<FindMembers>"Q_OBJECT" { // Qt object macro
}
<FindMembers>"Q_PROPERTY" { // Qt property declaration
- current->protection = protection = Public ;
+ //current->protection = protection = Public ; // see bug734245
current->mtype = mtype = Property;
current->type.resize(0);
BEGIN(QtPropType);
@@ -3372,6 +3372,8 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
}
else
{
+ mtype = Method;
+ virt = Normal;
if (needNewCurrent)
{
current = new Entry ;
@@ -6126,6 +6128,7 @@ OPERATOR "operator"{B}*({ARITHOP}|{ASSIGNOP}|{LOGICOP}|{BITOP})
else
{
mtype = Method;
+ virt = Normal;
unput(';');
BEGIN(FindMembers);
}