From db66ea91dfb50dc175e2c636182175bbff4e37bf Mon Sep 17 00:00:00 2001 From: David Rosca Date: Thu, 1 Mar 2018 20:38:43 +0100 Subject: [PATCH] PyFalkon: Export Menu and Action classes + fix warnings --- src/plugins/PyFalkon/CMakeLists.txt | 3 ++ src/plugins/PyFalkon/pyfalkon_global.h | 1 + src/plugins/PyFalkon/typesystem_pyfalkon.xml | 50 +++++++++++++++++++- 3 files changed, 53 insertions(+), 1 deletion(-) diff --git a/src/plugins/PyFalkon/CMakeLists.txt b/src/plugins/PyFalkon/CMakeLists.txt index 3ef0c3364..a5605fc5f 100644 --- a/src/plugins/PyFalkon/CMakeLists.txt +++ b/src/plugins/PyFalkon/CMakeLists.txt @@ -39,6 +39,7 @@ set(SHIBOKEN_OPTIONS --generator-set=shiboken --enable-parent-ctor-heuristic ${INCLUDES} -T${PYSIDE_TYPESYSTEMS} --output-directory=${CMAKE_CURRENT_BINARY_DIR} + --api-version="${Qt5_VERSION_MAJOR}.${Qt5_VERSION_MINOR}" ) # Specify which sources will be generated by shiboken, and their dependencies. @@ -122,6 +123,8 @@ set(GENERATED_SOURCES ${CMAKE_CURRENT_BINARY_DIR}/PyFalkon/sqldatabase_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PyFalkon/toolbutton_wrapper.cpp ${CMAKE_CURRENT_BINARY_DIR}/PyFalkon/wheelhelper_wrapper.cpp + ${CMAKE_CURRENT_BINARY_DIR}/PyFalkon/menu_wrapper.cpp + ${CMAKE_CURRENT_BINARY_DIR}/PyFalkon/action_wrapper.cpp ) set(GENERATED_SOURCES_DEPENDENCIES ${GLOBAL_HEADER} diff --git a/src/plugins/PyFalkon/pyfalkon_global.h b/src/plugins/PyFalkon/pyfalkon_global.h index a7dd8946e..fded01ccf 100644 --- a/src/plugins/PyFalkon/pyfalkon_global.h +++ b/src/plugins/PyFalkon/pyfalkon_global.h @@ -102,6 +102,7 @@ #include "clickablelabel.h" #include "delayedfilewatcher.h" #include "desktopfile.h" +#include "enhancedmenu.h" #include "iconprovider.h" #include "qztools.h" #include "sqldatabase.h" diff --git a/src/plugins/PyFalkon/typesystem_pyfalkon.xml b/src/plugins/PyFalkon/typesystem_pyfalkon.xml index c076669df..10b70440f 100644 --- a/src/plugins/PyFalkon/typesystem_pyfalkon.xml +++ b/src/plugins/PyFalkon/typesystem_pyfalkon.xml @@ -180,8 +180,47 @@ + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -210,6 +249,15 @@ PyModule_AddStringConstant(module, "__version__", Qz::VERSION); + +