include($QT_INSTALL_DOCS/global/qt-module-defaults.qdocconf)
include($QT_INSTALL_DOCS/config/exampleurl-qtdeclarative.qdocconf)

project                 = QtQml
description             = Qt QML Reference Documentation
version                 = $QT_VERSION

examplesinstallpath     = qml

qhp.projects            = QtQml

qhp.QtQml.file                = qtqml.qhp
qhp.QtQml.namespace           = org.qt-project.qtqml.$QT_VERSION_TAG
qhp.QtQml.virtualFolder       = qtqml
qhp.QtQml.indexTitle          = Qt QML
qhp.QtQml.indexRoot           =

qhp.QtQml.subprojects         = qmltypes classes examples
qhp.QtQml.subprojects.classes.title = C++ Classes
qhp.QtQml.subprojects.classes.indexTitle = Qt QML C++ Classes
qhp.QtQml.subprojects.classes.selectors = class fake:headerfile
qhp.QtQml.subprojects.classes.sortPages = true
qhp.QtQml.subprojects.examples.title = Examples
qhp.QtQml.subprojects.examples.indexTitle = Qt QML Examples
qhp.QtQml.subprojects.examples.selectors = fake:example
qhp.QtQml.subprojects.qmltypes.title = QML Types
qhp.QtQml.subprojects.qmltypes.indexTitle = Qt QML QML Types
qhp.QtQml.subprojects.qmltypes.selectors = qmlclass
qhp.QtQml.subprojects.qmltypes.sortPages = true


tagfile                 = ../../../doc/qtqml/qtqml.tags

depends += \
    qtcore \
    qtqmlmodels \
    qtqmlworkerscript \
    qtgui \
    qtquick \
    qtdoc \
    qtlinguist \
    qtwidgets \
    qtquickcontrols \
    qmake \
    qtcmake

headerdirs  += ..

sourcedirs  += ..

exampledirs += ../../../examples/qml \
               ../ \
               snippets

imagedirs   += images

# Add a thumbnail for examples that do not have images
manifestmeta.thumbnail.names += "QtQml/Chapter 4*" \
                                "QtQml/Chapter 6*" \
                                "QtQml/C++ Extensions: *"

navigation.landingpage = "Qt QML"
navigation.cppclassespage = "Qt QML C++ Classes"
navigation.qmltypespage = "Qt QML QML Types"

# suppress qdoc warnings for \instantiates entries
spurious += "C\\+\\+ class .*\\\\instantiates .*"

# Fail the documentation build if there are more warnings than the limit
warninglimit = 0
