aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6/PySide6/glue/qtgraphs.cpp
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2023-05-08 13:42:45 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2023-07-07 09:14:27 +0000
commitd1d1abf334791febf3d5ddea39cdaa7a5a01b816 (patch)
tree6206db6249c88e803ca715d2345aa5791e934351 /sources/pyside6/PySide6/glue/qtgraphs.cpp
parent3dfc872e356dd944d9cd03bccd8df5da8b1de472 (diff)
Add QtGraphs
Task-number: QTBUG-111305 Change-Id: I7ac79f59cfd0b85645d30485e86b6ff74bba20bb Reviewed-by: Shyamnath Premnadh <Shyamnath.Premnadh@qt.io>
Diffstat (limited to 'sources/pyside6/PySide6/glue/qtgraphs.cpp')
-rw-r--r--sources/pyside6/PySide6/glue/qtgraphs.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/sources/pyside6/PySide6/glue/qtgraphs.cpp b/sources/pyside6/PySide6/glue/qtgraphs.cpp
new file mode 100644
index 000000000..cf1a10eba
--- /dev/null
+++ b/sources/pyside6/PySide6/glue/qtgraphs.cpp
@@ -0,0 +1,8 @@
+// Copyright (C) 2023 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
+
+// @snippet graphs-qsurfacedataproxy-resetarraynp
+auto *data = QtGraphsHelper::surfaceDataFromNp(%1, %2, %3, %4, %5);
+// %CPPSELF.%FUNCTION_NAME
+%CPPSELF.resetArray(data);
+// @snippet graphs-qsurfacedataproxy-resetarraynp