diff options
author | albert-github <albert.tests@gmail.com> | 2020-03-21 11:38:01 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-21 11:38:01 (GMT) |
commit | 022dfa0527cc79a597a7b06db87dcb2f8b19eca7 (patch) | |
tree | 1f5e627a7994909f1f204a75a971f13845e25e67 | |
parent | cf5e0a3dbd3a31c2314e58e55bbdff66b3f49876 (diff) | |
download | Doxygen-022dfa0527cc79a597a7b06db87dcb2f8b19eca7.zip Doxygen-022dfa0527cc79a597a7b06db87dcb2f8b19eca7.tar.gz Doxygen-022dfa0527cc79a597a7b06db87dcb2f8b19eca7.tar.bz2 |
issue #7652 folder in file list has file icon (#7654)
When a directory has no source files or sub-directories in it (with the exception of markdown file(s)) the directory is seen as a file withe a definition type `TypeDir` but this was not handled properly on output, should have a closed folder icon.
-rw-r--r-- | src/ftvhelp.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/ftvhelp.cpp b/src/ftvhelp.cpp index c556b43..d231dad 100644 --- a/src/ftvhelp.cpp +++ b/src/ftvhelp.cpp @@ -451,6 +451,10 @@ void FTVHelp::generateTree(FTextStream &t, const QList<FTVNode> &nl,int level,in char icon=compoundIcon(dynamic_cast<const ClassDef*>(n->def)); t << "<span class=\"icona\"><span class=\"icon\">" << icon << "</span></span>"; } + else if (n->def && n->def->definitionType()==Definition::TypeDir) + { + t << "<span class=\"iconfclosed\"></span>"; + } else { t << "<span class=\"icondoc\"></span>"; |