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

project                 = QtQuick
description             = Qt Quick Reference Documentation
version                 = $QT_VERSION

examplesinstallpath     = quick

# Custom module header that pulls in also QtQuickWidgets
moduleheader            = QtQuickDoc
includepaths            = -I .

qhp.projects            = QtQuick

qhp.QtQuick.file                = qtquick.qhp
qhp.QtQuick.namespace           = org.qt-project.qtquick.$QT_VERSION_TAG
qhp.QtQuick.virtualFolder       = qtquick
qhp.QtQuick.indexTitle          = Qt Quick
qhp.QtQuick.indexRoot           =

qhp.QtQuick.filterAttributes    = qtquick $QT_VERSION qtrefdoc
qhp.QtQuick.customFilters.Qt.name = QtQuick $QT_VERSION
qhp.QtQuick.customFilters.Qt.filterAttributes = qtquick $QT_VERSION
qhp.QtQuick.subprojects         = qmltypes classes examples
qhp.QtQuick.subprojects.qmltypes.title = QML Types
qhp.QtQuick.subprojects.qmltypes.indexTitle = Qt Quick QML Types
qhp.QtQuick.subprojects.qmltypes.selectors = qmlclass
qhp.QtQuick.subprojects.qmltypes.sortPages = true
qhp.QtQuick.subprojects.classes.title = Classes
qhp.QtQuick.subprojects.classes.title = C++ Classes
qhp.QtQuick.subprojects.classes.indexTitle = Qt Quick C++ Classes
qhp.QtQuick.subprojects.classes.selectors = class doc:headerfile
qhp.QtQuick.subprojects.classes.sortPages = true
qhp.QtQuick.subprojects.examples.title = Examples
qhp.QtQuick.subprojects.examples.indexTitle = Qt Quick Examples and Tutorials
qhp.QtQuick.subprojects.examples.selectors = doc:example

tagfile = qtquick.tags

depends += \
    qtcore \
    qtqml \
    qtqmlmodels \
    qtqmlxmllistmodel \
    qtqmltest \
    qtgui \
    qtlinguist \
    qtquickcontrols \
    qtquick3d \
    qtdoc \
    qtplatformintegration \
    qtwidgets \
    qmake \
    qtsql \
    qtshadertools \
    qmake \
    qtcmake

{headerdirs,sourcedirs} += \
    .. \
    ../../quick \
    ../../quickwidgets \
    ../../qmllocalstorage \
    ../../quicklayouts \
    ../../labs

# src/labs/platform has its own documentation project
excludedirs += ../../labs/platform

exampledirs += \
    ../../../examples/quick \
    ../../qmlmodels/doc/snippets \
    snippets

imagedirs += images

# Add particles and shapes sources
{headerdirs,sourcedirs} += \
    ../../particles \
    ../../quickshapes

# Add imports and plugins directories because of dependencies
{headerdirs,sourcedirs} += \
    ../../imports \
    ../../plugins

excludefiles += ../util/qquickpropertychanges_p.h
examples.fileextensions += "*.qm"

manifestmeta.thumbnail.names += "QtQuick/Threaded ListModel Example" \
                                "QtQuick/QML Dynamic View Ordering Tutorial*"

manifestmeta.highlighted.names = "QtQuick/Qt Quick Demo - Same Game"

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

# \svgcolor {#ffdead}
macro.svgcolor.HTML = "<div style=\"padding:10px;color:#fff;background:\1;\"></div>"

# YouTube video thumbnail that show up in offline docs
{HTML.extraimages,qhp.QtQuick.extraFiles} += images/9BcAYDlpuT8.jpg
