diff options
author | empyrical <empyrical@users.noreply.github.com> | 2015-11-13 05:16:18 -0700 |
---|---|---|
committer | empyrical <empyrical@users.noreply.github.com> | 2015-11-13 05:16:18 -0700 |
commit | c86c4931b88b4fcbf17dce43c54dd2dead29342f (patch) | |
tree | 99334c04cfbb6f7fadb1b0fe698cdae2a82fbf34 /PySide2/QtQuickWidgets | |
parent | c0273d25720e1363e1e9d57ae23ac00e9e27783d (diff) |
Add Qt5 QML modules
Diffstat (limited to 'PySide2/QtQuickWidgets')
-rw-r--r-- | PySide2/QtQuickWidgets/CMakeLists.txt | 52 | ||||
-rw-r--r-- | PySide2/QtQuickWidgets/typesystem_quickwidgets.xml | 30 |
2 files changed, 82 insertions, 0 deletions
diff --git a/PySide2/QtQuickWidgets/CMakeLists.txt b/PySide2/QtQuickWidgets/CMakeLists.txt new file mode 100644 index 000000000..8ca4cf4b6 --- /dev/null +++ b/PySide2/QtQuickWidgets/CMakeLists.txt @@ -0,0 +1,52 @@ +project(QtQuickWidgets) + +set(QtQuickWidgets_SRC +${QtQuickWidgets_GEN_DIR}/qquickwidget_wrapper.cpp +# module is always needed +${QtQuickWidgets_GEN_DIR}/qtquickwidgets_module_wrapper.cpp +) + +make_path(QtQuickWidgets_typesystem_path ${QtCore_SOURCE_DIR} ${QtGui_SOURCE_DIR} ${QtWidgets_SOURCE_DIR} + ${QtCore_BINARY_DIR} ${QtGui_BINARY_DIR} ${QtWidgets_BINARY_DIR} + ${QtNetwork_SOURCE_DIR} ${QtNetwork_BINARY_DIR} ${QtQuick_SOURCE_DIR} + ${QtQuick_BINARY_DIR} ${QtQml_SOURCE_DIR} ${QtQml_BINARY_DIR} + ${QtQuickWidgets_SOURCE_DIR}) + +set(QtQuickWidgets_include_dirs ${QtQuickWidgets_SOURCE_DIR} + ${Qt5Core_INCLUDE_DIRS} + ${Qt5Gui_INCLUDE_DIRS} + ${Qt5Widgets_INCLUDE_DIRS} + ${Qt5Network_INCLUDE_DIRS} + ${Qt5Quick_INCLUDE_DIRS} + ${Qt5Qml_INCLUDE_DIRS} + ${Qt5QuickWidgets_INCLUDE_DIRS} + ${SHIBOKEN_PYTHON_INCLUDE_DIR} + ${SHIBOKEN_INCLUDE_DIR} + ${libpyside_SOURCE_DIR} + ${QtGui_GEN_DIR} + ${QtCore_GEN_DIR} + ${QtWidgets_GEN_DIR} + ${QtNetwork_GEN_DIR} + ${QtQuick_GEN_DIR} + ${QtQml_GEN_DIR} + ${QtQuickWidgets_GEN_DIR}) + +set(QtQuickWidgets_libraries pyside2 + ${SHIBOKEN_PYTHON_LIBRARIES} + ${Qt5Core_LIBRARIES} + ${Qt5Gui_LIBRARIES} + ${Qt5Network_LIBRARIES} + ${Qt5Widgets_LIBRARIES} + ${Qt5Quick_LIBRARIES} + ${Qt5Qml_LIBRARIES} + ${Qt5QuickWidgets_LIBRARIES}) + +set(QtQuickWidgets_deps QtGui QtQml QtQuick QtWidgets) + +create_pyside_module(QtQuickWidgets + QtQuickWidgets_include_dirs + QtQuickWidgets_libraries + QtQuickWidgets_deps + QtQuickWidgets_typesystem_path + QtQuickWidgets_SRC + "") diff --git a/PySide2/QtQuickWidgets/typesystem_quickwidgets.xml b/PySide2/QtQuickWidgets/typesystem_quickwidgets.xml new file mode 100644 index 000000000..d2db8d792 --- /dev/null +++ b/PySide2/QtQuickWidgets/typesystem_quickwidgets.xml @@ -0,0 +1,30 @@ +<?xml version="1.0"?> +<!-- + This file is part of PySide project. + Copyright (C) 2013 Digia Plc and/or its subsidiary(-ies). + Contact: PySide team <contact@pyside.org> + This library is free software; you can redistribute it and/or + modify it under the terms of the GNU Lesser General Public + License as published by the Free Software Foundation; either + version 2.1 of the License, or (at your option) any later version. + This library is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + Lesser General Public License for more details. + You should have received a copy of the GNU Lesser General Public + License along with this library; if not, write to the Free Software + Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA +--> +<typesystem package="PySide2.QtQuickWidgets"> + <load-typesystem name="typesystem_core.xml" generate="no"/> + <load-typesystem name="typesystem_gui.xml" generate="no"/> + <load-typesystem name="typesystem_quick.xml" generate="no"/> + <load-typesystem name="typesystem_qml.xml" generate="no"/> + <load-typesystem name="typesystem_widgets.xml" generate="no"/> + + + <object-type name="QQuickWidget"> + <enum-type name="ResizeMode" /> + <enum-type name="Status" /> + </object-type> +</typesystem>
\ No newline at end of file |