qdoc: Internal QML Types no longer marked public

When a QML type marked with \internal is read from an index file,
it is given private access instead of public access.

Task-number: QTBUG-34010
Change-Id: If9270372cf4db835dca9731bce8c446a2fa4e140
Reviewed-by: Topi Reiniö <topi.reinio@digia.com>
Reviewed-by: Nico Vertriest <nico.vertriest@digia.com>
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
bb10
Martin Smith 2013-10-10 14:50:36 +02:00 committed by The Qt Project
parent b21c82908c
commit 7e6ca1ef0d
1 changed files with 2 additions and 1 deletions

View File

@ -120,6 +120,7 @@ void QDocIndexFiles::readIndexFile(const QString& path)
{
QFile file(path);
if (file.open(QFile::ReadOnly)) {
//qDebug() << "READING:" << path;
QDomDocument document;
document.setContent(&file);
file.close();
@ -472,7 +473,7 @@ void QDocIndexFiles::readIndexSection(const QDomElement& element,
node->setAccess(Node::Public);
else if (access == "protected")
node->setAccess(Node::Protected);
else if (access == "private")
else if ((access == "private") || (access == "internal"))
node->setAccess(Node::Private);
else
node->setAccess(Node::Public);