diff --git a/src/plugins/PyFalkon/CMakeLists.txt b/src/plugins/PyFalkon/CMakeLists.txt index 7251d8086..13890db61 100644 --- a/src/plugins/PyFalkon/CMakeLists.txt +++ b/src/plugins/PyFalkon/CMakeLists.txt @@ -154,6 +154,7 @@ foreach(INCLUDE_DIR ${PYSIDE_INCLUDE_DIRS}) list(APPEND PYSIDE_ADDITIONAL_INCLUDES "${INCLUDE_DIR}/QtWebChannel") list(APPEND PYSIDE_ADDITIONAL_INCLUDES "${INCLUDE_DIR}/QtWebEngineCore") list(APPEND PYSIDE_ADDITIONAL_INCLUDES "${INCLUDE_DIR}/QtWebEngineWidgets") + list(APPEND PYSIDE_ADDITIONAL_INCLUDES "${INCLUDE_DIR}/QtSql") endforeach() set(PyFalkon_SRCS diff --git a/src/plugins/PyFalkon/autotests/basictest.py b/src/plugins/PyFalkon/autotests/basictest.py index 4abf09fda..5dbb071fa 100644 --- a/src/plugins/PyFalkon/autotests/basictest.py +++ b/src/plugins/PyFalkon/autotests/basictest.py @@ -14,6 +14,9 @@ class BasicTest(unittest.TestCase): window = Falkon.MainApplication.instance().createWindow(Falkon.Qz.BW_NewWindow) self.assertIsNotNone(window) + def test_sql_availability(self): + self.assertTrue(hasattr(Falkon.SqlDatabase, 'database')) + suite = unittest.defaultTestLoader.loadTestsFromTestCase(BasicTest) if unittest.TextTestRunner().run(suite).failures: diff --git a/src/plugins/PyFalkon/typesystem_pyfalkon.xml b/src/plugins/PyFalkon/typesystem_pyfalkon.xml index 12d05ebaf..436383b6a 100644 --- a/src/plugins/PyFalkon/typesystem_pyfalkon.xml +++ b/src/plugins/PyFalkon/typesystem_pyfalkon.xml @@ -2,6 +2,7 @@ + #include <pythonplugin.h>