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

project                 = QtWidgets
description             = Qt Widgets Reference Documentation
version                 = $QT_VERSION

# dummy macOS headers for generating docs under non-mac platforms
includepaths           += -I./macOS

examplesinstallpath     = widgets

# Path to the root of qtbase (for automatic linking to source code)
url.sources.rootdir     = ../../..

qhp.projects            = QtWidgets

qhp.QtWidgets.file         = qtwidgets.qhp
qhp.QtWidgets.namespace           = org.qt-project.qtwidgets.$QT_VERSION_TAG
qhp.QtWidgets.virtualFolder       = qtwidgets
qhp.QtWidgets.indexTitle          = Qt Widgets
qhp.QtWidgets.indexRoot           =

qhp.QtWidgets.subprojects = manual classes
qhp.QtWidgets.subprojects.classes.title = C++ Classes
qhp.QtWidgets.subprojects.classes.indexTitle = Qt Widgets C++ Classes
qhp.QtWidgets.subprojects.classes.selectors = class fake:headerfile
qhp.QtWidgets.subprojects.classes.sortPages = true
qhp.QtWidgets.subprojects.manual.title = Qt Widgets
qhp.QtWidgets.subprojects.manual.indexTitle = Qt Widgets module topics
qhp.QtWidgets.subprojects.manual.type = manual

tagfile                 = ../../../doc/qtwidgets/qtwidgets.tags

depends += \
    qtcore \
    qtgui \
    qtdoc \
    qtsql \
    qtdesigner \
    qtquick \
    qmake \
    qtnetwork \
    qtcmake \
    qtsvg \
    qtlinguist \
    qthelp \
    qtopengl \
    qtshadertools \
    qttestlib

headerdirs  += ..

sourcedirs  += .. \
               ../../../examples/widgets/doc/src

exampledirs += ../../../examples/widgets \
               ../../../doc/src/snippets \
               .. \
               . \
               snippets

excludedirs += snippets

# Included in qttestlib.qdocconf instead
excludefiles += ../kernel/qtestsupport_widgets.cpp

# Exclude forwarding headers to QtGUI to avoid duplicates in the node tree
excludefiles += \
    ../dialogs/qfilesystemmodel.h \
    ../kernel/qaction.h \
    ../kernel/qactiongroup.h \
    ../kernel/qshortcut.h \
    ../util/qundogroup.h \
    ../util/qundostack.h

imagedirs   += images \
               ../../../doc/src/images \
               ../../../examples/widgets/doc/images \
               ../../../examples/widgets

navigation.landingpage = "Qt Widgets"
navigation.cppclassespage = "Qt Widgets C++ Classes"
# Auto-generate navigation linking based on "Qt Widgets module topics":
navigation.toctitles = "Qt Widgets module topics"
navigation.toctitles.inclusive = false

# Highlighted examples for User Interface Components category
manifestmeta.highlighted.names = \
    "QtWidgets/Editable Tree Model Example" \
    "QtWidgets/Menus Example"

# Highlighted examples for Desktop category
manifestmeta.highlighted.names += \
    "QtWidgets/System Tray Icon Example" \
    "QtWidgets/Taking a Screenshot"

# Enforce zero documentation warnings
warninglimit = 0
