summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
authoralbert-github <albert.tests@gmail.com>2020-02-24 13:46:26 (GMT)
committeralbert-github <albert.tests@gmail.com>2020-02-24 13:46:26 (GMT)
commit8a7647bd12f383730c886b34c431ae976ec5ff83 (patch)
tree974a5cbec00b9206cd23b5232d3aa2ecf26ba781 /src/util.cpp
parent3b392af822d81ae51919feb2c2fc4c539238bb3b (diff)
downloadDoxygen-8a7647bd12f383730c886b34c431ae976ec5ff83.zip
Doxygen-8a7647bd12f383730c886b34c431ae976ec5ff83.tar.gz
Doxygen-8a7647bd12f383730c886b34c431ae976ec5ff83.tar.bz2
issue #7583 External Links in Inheritance Diagrams open in the Image Frame.
When having a function it opens in the current frame and uses the complete frame. Images (e.g. inherited diagrams) are displayed in a small "sub frame" and when displaying the link here it is not readable and furthermore the user doesn't know anything about the "sub frame". In case of an image the link should be displayed in the parent frame of the image.
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 25ca13e..92f593c 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -8163,10 +8163,15 @@ void writeSummaryLink(OutputList &ol,const char *label,const char *title,
}
#endif
-QCString externalLinkTarget()
+QCString externalLinkTarget(const bool parent)
{
static bool extLinksInWindow = Config_getBool(EXT_LINKS_IN_WINDOW);
- if (extLinksInWindow) return "target=\"_blank\" "; else return "";
+ if (extLinksInWindow)
+ return "target=\"_blank\" ";
+ else if (parent)
+ return "target=\"_parent\" ";
+ else
+ return "";
}
QCString externalRef(const QCString &relPath,const QCString &ref,bool href)