diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2004-10-05 18:06:58 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2004-10-05 18:06:58 (GMT) |
commit | deb9b8d40d7ac7d0c576ac9401aaed9e21ccdc58 (patch) | |
tree | 71b1f69fb092055eb6cb12c050b73c5ff04afd85 /src/memberdef.cpp | |
parent | f08cd6363f5da22b2452d4f937fef68220fcb081 (diff) | |
download | Doxygen-deb9b8d40d7ac7d0c576ac9401aaed9e21ccdc58.zip Doxygen-deb9b8d40d7ac7d0c576ac9401aaed9e21ccdc58.tar.gz Doxygen-deb9b8d40d7ac7d0c576ac9401aaed9e21ccdc58.tar.bz2 |
Release-1.3.9
Diffstat (limited to 'src/memberdef.cpp')
-rw-r--r-- | src/memberdef.cpp | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/src/memberdef.cpp b/src/memberdef.cpp index 4d505f4..b5e40af 100644 --- a/src/memberdef.cpp +++ b/src/memberdef.cpp @@ -178,7 +178,7 @@ static bool writeDefArgumentList(OutputList &ol,ClassDef *cd, } if (!a->name.isEmpty() || (a->name.isEmpty() && a->type=="...")) // argument has a name { - if (!hasFuncPtrType); + if (!hasFuncPtrType) { ol.docify(" "); } @@ -886,8 +886,9 @@ void MemberDef::writeDeclaration(OutputList &ol, ClassDef *annoClassDef=getClassDefOfAnonymousType(); // start a new member declaration + bool isAnonymous = annoClassDef || annMemb || annEnumType; ///printf("startMemberItem for %s\n",name().data()); - ol.startMemberItem((annoClassDef || annMemb || annEnumType) ? 1 : 0); + ol.startMemberItem( isAnonymous ? 1 : tArgList ? 3 : 0); // If there is no detailed description we need to write the anchor here. bool detailsVisible = isDetailedSectionLinkable(); @@ -915,8 +916,9 @@ void MemberDef::writeDeclaration(OutputList &ol, if (tArgList) { + if (!isAnonymous) ol.startMemberTemplateParams(); writeTemplatePrefix(ol,tArgList); - //ol.lineBreak(); + if (!isAnonymous) ol.endMemberTemplateParams(); } QCString ltype(type); @@ -1001,7 +1003,7 @@ void MemberDef::writeDeclaration(OutputList &ol, } else { - ol.insertMemberAlign(); + ol.insertMemberAlign(tArgList!=0); } // write name @@ -1433,7 +1435,8 @@ void MemberDef::writeDocumentation(MemberList *ml,OutputList &ol, isMutable() || (isInline() && Config_getBool("INLINE_INFO")) || isSignal() || isSlot() || isStatic() || (classDef && classDef!=container) || - isSettable() || isGettable() || isReadable() || isWritable() + isSettable() || isGettable() || isReadable() || isWritable() || + isFinal() || isAbstract() ) ) { @@ -1455,6 +1458,8 @@ void MemberDef::writeDocumentation(MemberList *ml,OutputList &ol, if (isSettable()) sl.append("set"); if (isReadable()) sl.append("read"); if (isWritable()) sl.append("write"); + if (isFinal()) sl.append("final"); + if (isAbstract()) sl.append("abstract"); if (protection()==Protected) sl.append("protected"); else if (protection()==Private) sl.append("private"); else if (protection()==Package) sl.append("package"); |