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

project                 = QtQuickControls2
description             = Qt Quick Controls 2 Reference Documentation
version                 = $QT_VERSION

qhp.projects            = QtQuickControls2

qhp.QtQuickControls2.file          = qtquickcontrols2.qhp
qhp.QtQuickControls2.namespace     = org.qt-project.qtquickcontrols2.$QT_VERSION_TAG
qhp.QtQuickControls2.virtualFolder = qtquickcontrols2
qhp.QtQuickControls2.indexTitle    = Qt Quick Controls 2
qhp.QtQuickControls2.indexRoot     =

qhp.QtQuickControls2.filterAttributes                  = qtquickcontrols2 $QT_VERSION qtrefdoc
qhp.QtQuickControls2.customFilters.Qt.name             = QtQuickControls2 $QT_VERSION
qhp.QtQuickControls2.customFilters.Qt.filterAttributes = qtquickcontrols2 $QT_VERSION

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

depends = qtcore qtgui qtdoc qtqml qtquick qtquickdialogs qtquickcontrols qtquickextras qmake qtsql qtwidgets qtlabscalendar qtlabsplatform

# Specify the install path under QT_INSTALL_EXAMPLES
# Note: paths passed to \example command must contain the parent directory, e.g.
# \example controls/tabs
exampledirs += ../../../../examples/quickcontrols2 \
               ../../../quicktemplates2 \
               snippets \
               snippets/screenshots

examplesinstallpath = quickcontrols2

headerdirs += ../../../quicktemplates2 \
              ../../../quickcontrols2

sourcedirs += ../../../quicktemplates2 \
              ../../../quickcontrols2 \
              ../../templates/doc/src \
              src

imagedirs += images

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

tagfile                 = qtquickcontrols2.tags

# \styleimport {QtQuick.Controls.Universal 2.0}
macro.styleimport.HTML = "<table class=\"alignedsummary\"><tbody><tr><td class=\"memItemLeft rightAlign topAlign\"> Import Statement:</td><td class=\"memItemRight bottomAlign\"> import \1</td></tr><tr><td class=\"memItemLeft rightAlign topAlign\"> Since:</td><td class=\"memItemRight bottomAlign\"> \2</td></tr></tbody></table>"

# \styleproperty {Universal.accent} {enumeration} {html-target-id}
# \target html-target-id
# This property holds ...
# (empty line)
# \endstyleproperty
macro.styleproperty.HTML = "<div class=\"qmlproto\"><table class=\"qmlname\"><tbody><tr valign=\"top\" class=\"odd\" id=\"\3\"><td class=\"tblQmlPropNode\"><p><span class=\"name\">\1</span> : <span class=\"type\">\2</span></p></td></tr></tbody></table></div>"
macro.endstyleproperty = "\\br"

# \stylemethod {returntype} {methodname} {argtype} {argname} {html-target-id}
# \target html-target-id
# This property holds ...
# (empty line)
# \endstylemethod
macro.stylemethod.HTML = "<div class=\"qmlproto\"><table class=\"qmlname\"><tbody><tr valign=\"top\" class=\"odd\" id=\"\5\"><td class=\"tblQmlFuncNode\"><p><span class=\"type\">\1</span> <span class=\"name\">\2</span>(<span class="type">\3</span> <i>\4</i>)</p></td></tr></tbody></table></div>"
macro.endstylemethod = "\\br"

# \stylemethod2 {returntype} {methodname} {arg1type} {arg1name} {arg2type} {arg2name} {html-target-id}
# \target html-target-id
# This method returns ...
# (empty line)
# \endstylemethod2
macro.stylemethod2.HTML = "<div class=\"qmlproto\"><table class=\"qmlname\"><tbody><tr valign=\"top\" class=\"odd\" id=\"\7\"><td class=\"tblQmlFuncNode\"><p><span class=\"type\">\1</span> <span class=\"name\">\2</span>(<span class="type">\3</span> <i>\4</i>, <span class="type">\5</span> <i>\6</i>)</p></td></tr></tbody></table></div>"
macro.endstylemethod2 = "\\br"

# \stylecolor {#6A00FF} {(default)}
macro.stylecolor.HTML = "<div style=\"padding:10px;color:#fff;background:\1;\">\1 \2</div>"

macro.nbsp.HTML = "&nbsp;"

#Add output suffix to the html filenames
outputsuffixes = QML
outputsuffixes.QML = 2
