aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/PySide6/glue/qtwebenginewidgets.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2024-10-07 09:56:41 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2024-10-07 15:35:32 +0200
commitc68ae5cabffff255307c785debbfe82c2ce5f722 (patch)
tree20a437f43f8bde52f5ba5cc0dca40f9dfaac9a15 /sources/pyside6/PySide6/glue/qtwebenginewidgets.cpp
parent1e5fe140b485209a30d7dd38b3334440c58cbb05 (diff)
PySide6: Add parameter names to QWebEnginePage's added functions
As a drive-by, change the callbacks to PyCallable* and remove the parameter checks from the snippets. Task-number: PYSIDE-2883 Task-number: PYSIDE-946 Change-Id: I3986d2eced9606c71a3071755dce935b30cd67a5 Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/pyside6/PySide6/glue/qtwebenginewidgets.cpp')
-rw-r--r--sources/pyside6/PySide6/glue/qtwebenginewidgets.cpp12
1 files changed, 0 insertions, 12 deletions
diff --git a/sources/pyside6/PySide6/glue/qtwebenginewidgets.cpp b/sources/pyside6/PySide6/glue/qtwebenginewidgets.cpp
index af15130a4..1235c123d 100644
--- a/sources/pyside6/PySide6/glue/qtwebenginewidgets.cpp
+++ b/sources/pyside6/PySide6/glue/qtwebenginewidgets.cpp
@@ -5,10 +5,6 @@
auto callable = %PYARG_3;
auto callback = [callable](const QWebEngineFindTextResult &result)
{
- if (!PyCallable_Check(callable)) {
- qWarning("Argument 3 of %FUNCTION_NAME must be a callable.");
- return;
- }
Shiboken::GilState state;
Shiboken::AutoDecRef arglist(PyTuple_New(1));
PyTuple_SET_ITEM(arglist, 0, %CONVERTTOPYTHON[QWebEngineFindTextResult](result));
@@ -46,10 +42,6 @@ Py_INCREF(callable);
auto callable = %PYARG_1;
auto callback = [callable](const QString &text)
{
- if (!PyCallable_Check(callable)) {
- qWarning("Argument 1 of %FUNCTION_NAME must be a callable.");
- return;
- }
Shiboken::GilState state;
Shiboken::AutoDecRef arglist(PyTuple_New(1));
PyTuple_SET_ITEM(arglist, 0, %CONVERTTOPYTHON[QString](text));
@@ -65,10 +57,6 @@ Py_INCREF(callable);
auto callable = %PYARG_3;
auto callback = [callable](const QVariant &result)
{
- if (!PyCallable_Check(callable)) {
- qWarning("Argument 3 of %FUNCTION_NAME must be a callable.");
- return;
- }
Shiboken::GilState state;
Shiboken::AutoDecRef arglist(PyTuple_New(1));
switch (result.type()) {