summaryrefslogtreecommitdiffstats
path: root/src/memberdef.cpp
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2006-02-04 15:33:47 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2006-02-04 15:33:47 (GMT)
commit8b0ae7ca77a14eef79e972d6061a9470de9ae458 (patch)
tree2d45018d20008480ccea03a78fa6fc37908676d9 /src/memberdef.cpp
parente6060ed25b457ae558711d1341bf1c96b093ee99 (diff)
downloadDoxygen-8b0ae7ca77a14eef79e972d6061a9470de9ae458.zip
Doxygen-8b0ae7ca77a14eef79e972d6061a9470de9ae458.tar.gz
Doxygen-8b0ae7ca77a14eef79e972d6061a9470de9ae458.tar.bz2
Release-1.4.6-20060202
Diffstat (limited to 'src/memberdef.cpp')
-rw-r--r--src/memberdef.cpp21
1 files changed, 20 insertions, 1 deletions
diff --git a/src/memberdef.cpp b/src/memberdef.cpp
index 2f40015..6d2761c 100644
--- a/src/memberdef.cpp
+++ b/src/memberdef.cpp
@@ -79,7 +79,7 @@ static QCString addTemplateNames(const QCString &s,const QCString &n,const QCStr
static bool writeDefArgumentList(OutputList &ol,ClassDef *cd,
const QCString & /*scopeName*/,MemberDef *md)
{
- ArgumentList *defArgList=md->isDocsForDefinition() ?
+ ArgumentList *defArgList=(md->isDocsForDefinition() && !md->isProperty()) ?
md->argumentList() : md->declArgumentList();
//printf("writeDefArgumentList `%s' isDocsForDefinition()=%d\n",md->name().data(),md->isDocsForDefinition());
if (defArgList==0)
@@ -1150,6 +1150,25 @@ void MemberDef::writeDeclaration(OutputList &ol,
ol.endTypewriter();
}
+ if (isProperty())
+ {
+ ol.writeLatexSpacing();
+ ol.startTypewriter();
+ ol.docify(" [");
+ QStrList sl;
+ if (isGettable()) sl.append("get");
+ if (isSettable()) sl.append("set");
+ const char *s=sl.first();
+ while (s)
+ {
+ ol.docify(s);
+ s=sl.next();
+ if (s) ol.docify(", ");
+ }
+ ol.docify("]");
+ ol.endTypewriter();
+ }
+
if (!detailsVisible && !annMemb)
{
ol.endDoxyAnchor(cfname,anchor());