Add QtWebEngine re-exports to qgis.PyQt

This commit is contained in:
David Koňařík 2024-04-06 16:35:46 +02:00 committed by Nyall Dawson
parent cb59f7a2f9
commit 534926b46a
4 changed files with 66 additions and 0 deletions

View File

@ -10,6 +10,9 @@ set(PYQT_COMPAT_FILES
QtPrintSupport.py
QtWebKit.py
QtWebKitWidgets.py
QtWebEngineCore.py
QtWebEngineQuick.py
QtWebEngineWidgets.py
QtNetwork.py
QtXml.py
QtSql.py

View File

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
"""
***************************************************************************
QtWebEngineCore.py
---------------------
Date : April 2024
Copyright : (C) 2024 David Koňařík
Email : dvdkon at konarici dot cz
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************
"""
from PyQt@QT_VERSION_MAJOR@.QtWebEngineCore import *

View File

@ -0,0 +1,23 @@
# -*- coding: utf-8 -*-
"""
***************************************************************************
QtWebEngineQuick.py
---------------------
Date : April 2024
Copyright : (C) 2024 David Koňařík
Email : dvdkon at konarici dot cz
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************
"""
if @QT_VERSION_MAJOR@ == 5:
from PyQt5.QtWebEngine import *
else:
from PyQt@QT_VERSION_MAJOR@.QtWebEngineQuick import *

View File

@ -0,0 +1,20 @@
# -*- coding: utf-8 -*-
"""
***************************************************************************
QtWebEngineWidgets.py
---------------------
Date : April 2024
Copyright : (C) 2024 David Koňařík
Email : dvdkon at konarici dot cz
***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************
"""
from PyQt@QT_VERSION_MAJOR@.QtWebEngineWidgets import *