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
parent
b21c82908c
commit
7e6ca1ef0d
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue