diff options
Diffstat (limited to 'sources/pyside6/PySide6/QtHelp')
-rw-r--r-- | sources/pyside6/PySide6/QtHelp/CMakeLists.txt | 53 | ||||
-rw-r--r-- | sources/pyside6/PySide6/QtHelp/QtHelp_global.pre.h.in | 3 | ||||
-rw-r--r-- | sources/pyside6/PySide6/QtHelp/typesystem_help.xml | 37 |
3 files changed, 93 insertions, 0 deletions
diff --git a/sources/pyside6/PySide6/QtHelp/CMakeLists.txt b/sources/pyside6/PySide6/QtHelp/CMakeLists.txt new file mode 100644 index 000000000..7bf46dcef --- /dev/null +++ b/sources/pyside6/PySide6/QtHelp/CMakeLists.txt @@ -0,0 +1,53 @@ +# Copyright (C) 2023 The Qt Company Ltd. +# SPDX-License-Identifier: BSD-3-Clause + +project(QtHelp) + +set(QtHelp_SRC +${QtHelp_GEN_DIR}/qcompressedhelpinfo_wrapper.cpp +${QtHelp_GEN_DIR}/qhelpcontentitem_wrapper.cpp +${QtHelp_GEN_DIR}/qhelpcontentmodel_wrapper.cpp +${QtHelp_GEN_DIR}/qhelpcontentwidget_wrapper.cpp +${QtHelp_GEN_DIR}/qhelpglobal_wrapper.cpp +${QtHelp_GEN_DIR}/qhelpengine_wrapper.cpp +${QtHelp_GEN_DIR}/qhelpenginecore_wrapper.cpp +${QtHelp_GEN_DIR}/qhelpfilterdata_wrapper.cpp +${QtHelp_GEN_DIR}/qhelpfilterengine_wrapper.cpp +${QtHelp_GEN_DIR}/qhelpfiltersettingswidget_wrapper.cpp +${QtHelp_GEN_DIR}/qhelpindexmodel_wrapper.cpp +${QtHelp_GEN_DIR}/qhelpindexwidget_wrapper.cpp +${QtHelp_GEN_DIR}/qhelplink_wrapper.cpp +${QtHelp_GEN_DIR}/qhelpsearchengine_wrapper.cpp +${QtHelp_GEN_DIR}/qhelpsearchquery_wrapper.cpp +${QtHelp_GEN_DIR}/qhelpsearchquerywidget_wrapper.cpp +${QtHelp_GEN_DIR}/qhelpsearchresult_wrapper.cpp +${QtHelp_GEN_DIR}/qhelpsearchresultwidget_wrapper.cpp +# module is always needed +${QtHelp_GEN_DIR}/qthelp_module_wrapper.cpp +) + +configure_file("${QtHelp_SOURCE_DIR}/QtHelp_global.pre.h.in" + "${QtHelp_BINARY_DIR}/QtHelp_global.pre.h" @ONLY) + +set(QtHelp_include_dirs ${QtHelp_SOURCE_DIR} + ${QtHelp_BINARY_DIR} + ${Qt${QT_MAJOR_VERSION}Core_INCLUDE_DIRS} + ${Qt${QT_MAJOR_VERSION}Gui_INCLUDE_DIRS} + ${Qt${QT_MAJOR_VERSION}Widgets_INCLUDE_DIRS} + ${Qt${QT_MAJOR_VERSION}Help_INCLUDE_DIRS} + ${libpyside_SOURCE_DIR} + ${QtWidgets_GEN_DIR} + ${QtGui_GEN_DIR} + ${QtCore_GEN_DIR} + ) +set(QtHelp_libraries pyside6 + ${Qt${QT_MAJOR_VERSION}Help_LIBRARIES}) + +set(QtHelp_deps QtWidgets) + +create_pyside_module(NAME QtHelp + INCLUDE_DIRS QtHelp_include_dirs + LIBRARIES QtHelp_libraries + DEPS QtHelp_deps + TYPESYSTEM_PATH QtHelp_SOURCE_DIR + SOURCES QtHelp_SRC) diff --git a/sources/pyside6/PySide6/QtHelp/QtHelp_global.pre.h.in b/sources/pyside6/PySide6/QtHelp/QtHelp_global.pre.h.in new file mode 100644 index 000000000..003b22ae6 --- /dev/null +++ b/sources/pyside6/PySide6/QtHelp/QtHelp_global.pre.h.in @@ -0,0 +1,3 @@ +// QVersionNumber is only forward-declared in QtHelp + +#include <QtCore/QVersionNumber> diff --git a/sources/pyside6/PySide6/QtHelp/typesystem_help.xml b/sources/pyside6/PySide6/QtHelp/typesystem_help.xml new file mode 100644 index 000000000..5fa30e034 --- /dev/null +++ b/sources/pyside6/PySide6/QtHelp/typesystem_help.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +// Copyright (C) 2016 The Qt Company Ltd. +// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only +--> + +<typesystem package="PySide6.QtHelp" + namespace-begin="QT_BEGIN_NAMESPACE" namespace-end="QT_END_NAMESPACE"> + <load-typesystem name="QtWidgets/typesystem_widgets.xml" generate="no"/> + + <value-type name="QCompressedHelpInfo"/> + <value-type name="QHelpContentItem"> + <modify-function signature="parent()const"> + <modify-argument index="return"> + <define-ownership owner="default"/> + </modify-argument> + </modify-function> + </value-type> + <object-type name="QHelpContentModel" polymorphic-id-expression="qobject_cast<QHelpContentModel*>(%B)"/> + <object-type name="QHelpContentWidget"/> + <value-type name="QHelpGlobal"/> + <object-type name="QHelpEngine"/> + <object-type name="QHelpEngineCore"/> + <value-type name="QHelpFilterData"/> + <object-type name="QHelpFilterEngine"/> + <object-type name="QHelpFilterSettingsWidget"/> + <object-type name="QHelpIndexModel"/> + <object-type name="QHelpIndexWidget"/> + <value-type name="QHelpLink"/> + <object-type name="QHelpSearchEngine"/> + <value-type name="QHelpSearchQuery"> + <enum-type name="FieldName"/> + </value-type> + <object-type name="QHelpSearchQueryWidget"/> + <object-type name="QHelpSearchResult"/> + <object-type name="QHelpSearchResultWidget"/> +</typesystem> |