Browse Source

Exclude QObject and Item. Everything on the c++ side derives from QObject and most things on the QML side derives from Item.

QGC4.4
Gus Grubba 5 years ago
parent
commit
2c04ad3c35
  1. 2
      doc/Doxyfile
  2. 37
      doc/dot

2
doc/Doxyfile

@ -355,7 +355,7 @@ GRAPHICAL_HIERARCHY = YES @@ -355,7 +355,7 @@ GRAPHICAL_HIERARCHY = YES
DIRECTORY_GRAPH = YES
DOT_IMAGE_FORMAT = svg
INTERACTIVE_SVG = YES
DOT_PATH = /usr/local/bin/dot
DOT_PATH = .
DOTFILE_DIRS =
MSCFILE_DIRS =
DIAFILE_DIRS =

37
doc/dot

@ -0,0 +1,37 @@ @@ -0,0 +1,37 @@
#! /bin/bash
# This hack is a wrapper to GraphViz dot that removes any nodes that
# are contained in the following list.
LABELS_TO_FILTER="QObject Item"
ARGS=$@
for ARG in ${ARGS}
do
if [ -e ${ARG} ]
then
FILENAME=$(basename "${ARG}")
EXT="${FILENAME##*.}"
if [ ${EXT} == "dot" ]
then
DOT_FILE=${ARG}
for LABEL_TO_FILTER in ${LABELS_TO_FILTER}
do
NODE_NAME=$(grep "label=\"${LABEL_TO_FILTER}\"" ${DOT_FILE} | awk '{print $1}')
if [[ ! -z "${NODE_NAME}" ]]
then
echo "${NODE_NAME} is labelled ${LABEL_TO_FILTER}, filtering..."
sed -i -e "/${NODE_NAME}/d" ${DOT_FILE}
fi
done
break
fi
fi
done
/usr/local/bin/dot ${ARGS}
Loading…
Cancel
Save