Commit Graph

1391 Commits

Author SHA1 Message Date
Alexey Edelev e486f98cbc Make 'qtquick3d' optional dependency for the module
QtQuick3D was listed as a required module in dependencies. However,
you should be able to build QtGraphs without 3D features. In that case,
it is not necessary to have Quick3D. Therefore, the Quick3D required
field should be false in the dependencies. In addition, the baseline
tests must be turned off if 3D features are unavailable, as they link
to Quick3D.

Pick-to: 6.9 6.8
Change-Id: I6c45fde93d75d54b4adf89471441d989452b0245
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
(cherry picked from commit 6300f5af2f)
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2025-08-27 09:59:33 +02:00
Qt Submodule Update Bot 432b7ace32 Update dependencies on '6.10' in qt/qtgraphs
Change-Id: I59012e08cf87cd4f33d0b5364b26fa0b4a714885
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-08-25 14:33:17 +00:00
Tomi Korpipaa 46d013f1b0 GraphsWidgets: Pass QImage by reference to const instead of by value
Based on API review.

Rationale: Non-trivial types should not be passed by value.

Task-number: QTBUG-137478
Change-Id: I9be369facb9f214e8bd11edbd67ef03c3c331de7
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
(cherry picked from commit 60a29fd7f9)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-08-21 11:06:30 +00:00
Volker Hilsheimer 85cda1d547 Doc: remove "Sets" from QML property documentation
Properties hold a value, only the setter sets the value.

Change-Id: I986abb3f5424ef5d71bd44a08b643138fd1f36e3
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
(cherry picked from commit 75ec4ffe74)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-08-20 14:50:13 +00:00
Tomi Korpipaa dc9c9cedc7 Fix extra asterisks in documentation
Scatter3DNode is not a part of Qt before 6.10, hence
2 separate commits with different pick targets.

Fixes: QTBUG-138797
Change-Id: Iaed5d38c81847ce9f75d21fb7b492d2cc8a972f6
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
(cherry picked from commit 1367d26953)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-08-20 07:17:24 +00:00
Volker Hilsheimer 4c19e5c558 QAbstract3DSeries: don't fully qualify enum in member functions
The enum from the same class can be used in member functions without
fully qualifying the type with the class name. This makes a difference
for string-based signal/slot connections, where the declaration without
the full scope makes connections also work if the full scope is not
provided in the SIGNAL and SLOT macros.

Addresses header review comment and amends
52a361988d.

As a drive-by, fix the capitalization of the setter parameter, and the
documentation of the property.

Change-Id: I1d9ca21dc8fd173852ca89ec3060dbb1da50c046
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
(cherry picked from commit 8f9c14c383)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-08-19 15:34:18 +00:00
Kwanghyo Park 39c5cdc6f8 Decouple pie and hole size setters
Removes logic that caused setPieSize() and setHoleSize() to implicitly
modify each other. The setters now only affect their own respective
properties.

Pick-to: 6.9 6.8
Fixes: QTBUG-134003
Change-Id: I2d7b3e36d692248cd2de19dc6daa9d09a61c8158
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
(cherry picked from commit e2def3779a)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-08-18 15:50:28 +00:00
Sakaria Pouke 07c44e94e0 Improve surface graph picking
Implements custom picking for surfaces.
Completely removes proxyModel from use.

Fixes: QTBUG-138788
Change-Id: Id851ad264e0a35889cc4d320eac0c5060ea8dbc5
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
(cherry picked from commit cad6ebb98d)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-08-18 10:02:38 +00:00
Qt Submodule Update Bot a90df0e970 Update dependencies on '6.10' in qt/qtgraphs
Change-Id: I3013be6a3ab61f0a090040b26a83eb555237053c
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-08-15 19:16:20 +00:00
Qt Submodule Update Bot 07dbd1482b Update dependencies on '6.10' in qt/qtgraphs
Change-Id: I16cff280d012641ea49bbf680acd2ddd5e31cb65
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-08-14 11:51:17 +00:00
Sakaria Pouke 8236a17098 Surface: recalculate bounds in updateModel, always set gradient uniforms
Fixes: QTBUG-138923
Fixes: QTBUG-138924
Pick-to: 6.9 6.8
Change-Id: I619fd5382e078b225356fd3d6822164ff7db1512
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
(cherry picked from commit f7d363f5f5)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-08-14 08:47:17 +00:00
Sami Varanka 43ccf20e67 Fix: crash when closing Graphs2D
When series is created outside of graphsview and then added into
a graphsview, the app crashes while closing. This seems to be because
it ends up calling pure virtual type function from the QAbstractSeries
in the getSeriesRendererIndex. This patch adds type variable to
QAbstractSeriesPrivate. The variable is set by QAbstractSeriesPrivate
constructor. The getSeriesRendererIndex function checks the value of
that variable instead of calling the virtual type().

Pick-to: 6.8 6.9
Fixes: QTBUG-138506
Change-Id: I7aca4970c38cbf83413818b0a77e7cf5d76195b6
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
(cherry picked from commit 630b38b3ee)
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
2025-08-13 20:33:34 +03:00
Qt Submodule Update Bot 86c90e3ae2 Update dependencies on '6.10' in qt/qtgraphs
Change-Id: I38bcae10e8039b71cef8dd5de12fc5398fd0b3eb
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-08-13 16:29:28 +00:00
Tomi Korpipaa b04c8deb94 Fix extra asterisks in documentation
Task-number: QTBUG-138797
Pick-to: 6.9 6.8
Change-Id: If3d5ea7ecb530fd20d7d297156e9fa6d322f9e09
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
(cherry picked from commit fee3df178a)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-08-13 04:43:34 +00:00
Qt Submodule Update Bot d1e2abd722 Update dependencies on '6.10' in qt/qtgraphs
Change-Id: Ibbbedb6000d8bd3d9e5e9dc018624c30783422ff
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-08-09 01:44:05 +00:00
Qt Submodule Update Bot 024f170bb2 Update dependencies on '6.10' in qt/qtgraphs
Change-Id: I902704e34153826fe8ae8efa57e89d9c2745791a
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-08-05 20:15:40 +00:00
Tomi Korpipaa 786c7b2c7f Fix clazy-non-pod-global-static warning
Doing it this way should not break unity build, unlike
the previous attempt.

Pick-to: 6.9
Change-Id: Ibe7f305ba9e41d1465bad7bbb7fb61860b225a98
Reviewed-by: Tim Blechmann <tim.blechmann@qt.io>
Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io>
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
(cherry picked from commit 4b815129c6)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-08-05 06:31:55 +00:00
Tomi Korpipaa 35939f0732 Revert "Fix clazy-non-pod-global-static warning"
This broke unity build, so it has to be reverted in this form.

This reverts commit 6ba5d8f00c.

Pick-to: 6.9
Change-Id: I58719cd79c53af764e973b47e115e0f4f02af917
Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
(cherry picked from commit ee46f585d9)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-08-05 06:31:49 +00:00
Sakaria Pouke 9dddd4178c Use mask alphamode in labels
Switching to mask mode does not seem to visually change
the labels much if at all, and it fixes the problem with approximate
OIT.

Fixes: QTBUG-138827
Change-Id: Ia222cf6c5ec6a8e764d06217b1593abe27e166e3
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
(cherry picked from commit 330273682e)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-08-04 06:37:51 +00:00
Jere Tuliniemi 510dd17c10 Fix horizontal orientation for non-bar series
Fixes: QTBUG-138740
Change-Id: I328a1fd22a66d53643b0e81be1b832e5cee9bac5
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
(cherry picked from commit 13e23a8337)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-07-31 22:28:17 +00:00
Kwanghyo Park f2560a0384 Fix the doc for zValueChanged signal
Change-Id: I809f3c5e3bc3005613f30809ff308b8c5d71f914
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
(cherry picked from commit 88fa4d12ed)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-07-31 11:51:36 +00:00
Qt Submodule Update Bot 5f6b39c42a Update dependencies on '6.10' in qt/qtgraphs
Change-Id: Ibaf9ebbb97b200f2db86a738fd5be3e8593a3692
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-07-30 22:57:43 +00:00
Kwanghyo Park b2c9b257ae Graphs: Set LightingMode enum's underlying type to bool
Based on API review: Since the enum only has two states,
`bool` is a more fitting and efficient underlying type.

Task-number: QTBUG-137478
Change-Id: Ieceb07b275f7fcee7a25982d856518690de04b78
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Sakaria Pouke <sakaria.pouke@qt.io>
(cherry picked from commit 006758ac5f)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-07-30 11:30:50 +00:00
Kwanghyo Park 9d63aff151 Graphs: re-implement scale support in 3D scatter graph
Based on API review: support for per-item scale for scatter graph
has been moved from QScatterDataItem to QScatter3DSeries.
This change avoids adding member data to QScatterDataItem, which
would break binary compatibility.

Task-number: QTBUG-137478
Change-Id: I07668e20a358e99740ea348f4c744e05518e2fcb
Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io>
(cherry picked from commit e8ed058e22)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-07-29 13:28:50 +00:00
Qt Submodule Update Bot 17f57b2c32 Update dependencies on '6.10' in qt/qtgraphs
Change-Id: Ibdd3fd5a1a24cc3da948e5a04c3edc1359ee43ce
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-07-29 12:08:15 +00:00
Tomi Korpipaa 7e3bd53ad5 GraphsWidgets: Do not introduce new QSharedPointers
Based on API review: Do not introduce new APIs with QSharedPointer

Rationale: QSharedPointer's implementation is poor and requires
twice the number of atomic operations on copy than std::shared_ptr.
We want to remove the class in Qt 7.

Solution: Instead of returning shared pointer to a QQuickItemGrabResult
that is received from the QQuick3DViewport, extract the image from
the grab result and return a pointer to that instead.

Task-number: QTBUG-137478
Change-Id: I54cc9aece72cf8cf5ec4abaddc1da189d0c31b2b
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io>
(cherry picked from commit 544bc177fd)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-07-29 07:46:01 +00:00
Tomi Korpipaa 82fbf9395d Fix clazy-non-pod-global-static warning
Pick-to: 6.9
Change-Id: Iac3ba82a158acd495e76b841bce5bca3ba96c5d5
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
Reviewed-by: Jere Tuliniemi <jere.tuliniemi@qt.io>
Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io>
(cherry picked from commit 6ba5d8f00c)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-07-29 03:47:08 +00:00
Jere Tuliniemi 31f9a360eb Update GraphView when series axis is changed
Fixes: QTBUG-138598
Change-Id: I456dfa64244acfedbd11a68e5de9fbe31c2174e2
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
(cherry picked from commit 453df72f28)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-07-28 15:32:06 +00:00
Jere Tuliniemi eb3e79e661 Document the axis properties of QAbstractSeries
Task-number: QTBUG-132333
Change-Id: Ice90c1ee70309eff8c9404b046ca2819ff94526c
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
(cherry picked from commit 1aa6025991)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-07-28 15:32:02 +00:00
Andreas Eliasson 6fbd4edba6 Doc: Fix broken links to Node types
The QML type is called Bars3DNode, not BarsNode. The same applies
for ScatterNode and SurfaceNode.

Change-Id: I040ab1bae22fc7e79f3b769d162d2c1b90ba1a7d
Reviewed-by: Topi Reiniö <topi.reinio@qt.io>
Reviewed-by: Andreas Eliasson <andreas.eliasson@qt.io>
(cherry picked from commit 2a19994f52)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-07-24 11:03:07 +00:00
Kwanghyo Park 428a3fd680 Graphs: rename enum SliceType to SliceCaptureType
Based on API review: this change improves the clarity and semantics
of the enum by renaming SliceType to SliceCaptureType.
Enum values were also renamed to explicitly indicate the type of
slice being captured to an image.

Task-number: QTBUG-137478
Change-Id: I1c21180f064d26189ba4121e412f103017c00fd6
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
(cherry picked from commit ff599b3b56)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-07-24 07:51:53 +00:00
Dheerendra Purohit b00358a33d Doc: Make QAbstractSeries::graph() as \internal to hide private type
The QAbstractseries::graph() function returned a private type
QGraphView which was mistakenly exposed in public documentation.
Added \internal to the doc comment to hide the function from public
API docs. Fixes the documentation leak of the private class.

Pick-to: 6.9 6.8
Task-number: QTBUG-138456
Change-Id: I4f2af5e43ada043788f841e570df1911351dcdbb
Reviewed-by: Sze Howe Koh <szehowe.koh@gmail.com>
(cherry picked from commit 16b5a594e6)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-07-24 05:13:12 +00:00
Kwanghyo Park 36c3af8810 Graphs: add parameters to angle span visibility change signals
Based on API review: Update angleSpanVisibleLimitChanged and
angleSpanVisibleModeChanged signals to include their
respective new values as parameters.
Maintain consistency with the rest of Qt.

Task-number: QTBUG-137478
Change-Id: I384ee60f933e0da15ca22cfc01eec693588dc183
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
(cherry picked from commit c0f6e03ede)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-07-23 05:43:52 +00:00
Qt Submodule Update Bot 19893ba0be Update dependencies on '6.10' in qt/qtgraphs
Change-Id: I3c234a981d39a6ea05661ffe73a86ca81c3f7cf3
Reviewed-by: Qt Submodule Update Bot <qt_submodule_update_bot@qt-project.org>
2025-07-22 19:58:17 +00:00
Tomi Korpipaa 191214ccc6 Print out a warning if surface series has incorrectly ordered data
If data has been inserted with flipped order (filling Z axis
before X axis), detect it and print out a warning.

Pick-to: 6.9 6.8
Fixes: QTBUG-124738
Change-Id: I17bad88cdc8f0b8e336dc5fa18990cfd6afa46e0
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
(cherry picked from commit 0a647dded3)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-07-22 10:46:31 +00:00
Kwanghyo Park 88295d2e37 Graphs: rename drawOrder property to zValue
Based on API review: the drawOrder property has been renamed to
zValue for consistency within the Qt Graphics API.

Task-number: QTBUG-137478
Change-Id: I8b82a998ca2d5165169d3184c493708b3214f24a
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
(cherry picked from commit 9a2b68a825)
Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io>
2025-07-22 12:03:09 +03:00
Tomi Korpipaa 42d5b3c342 Fix several clazy warnings
- Emit keyword being used with non-signal QQuickItem::update
  [clazy-incorrect-emit]
- Missing emit keyword on signal call QAbstractSeries::update
  [clazy-incorrect-emit]
- Don't call QList::first() on temporary [clazy-detaching-temporary]
- unused QString [clazy-unused-non-trivial-variable]
- unused QVector<SurfaceVertex> [clazy-unused-non-trivial-variable]
- Mixing iterators with const_iterators [clazy-strict-iterators]
- Call to temporary is a no-op: QByteArray::clear
  [clazy-writing-to-temporary]
- Missing reference in range-for with non trivial type
  (QList<QQuickGraphsSurface::SurfaceVertex>) [clazy-range-loop-reference]

Change-Id: I4eb70bdf306ee276e2e897b92719cae5f795624a
Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io>
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
(cherry picked from commit 28cf96afa3)
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2025-07-22 07:08:40 +03:00
Tim Blechmann 54a95104c1 Harden namespacing
When using namespaced Qt, we need to prevent symbol clashes with symbols
of the same name. So we namespace all globally visible classes.

Also removing an unused include and an empty statement.

Task-number: QTBUG-138543
Change-Id: I1820c59c07ede984955613e44d6a592794c41996
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
(cherry picked from commit 5f25c58e24)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-07-21 07:16:55 +00:00
Kwanghyo Park 74f76ec3d3 Graphs: rename VisibleMode to LabelVisibility
Based on API review: Rename the VisibleMode enum to LabelVisibility
to specifically state that it controls label visibility in pie series.

Task-number: QTBUG-137478
Change-Id: If7834e180a3be90c8a5f69807ac9763b7e4ac853
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
(cherry picked from commit 8a24be6330)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-07-21 06:41:27 +00:00
Kwanghyo Park 30d9763c31 Graphs: rename textElide to textElideMode
Based on API review: Renamed the textElide property to textElideMode
to improve clarity and align with Qt naming conventions.

Task-number: QTBUG-137478
Change-Id: I5261055f686dd8b96576809ca266599a5c258fee
Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io>
(cherry picked from commit 49468e7019)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-07-17 12:15:44 +00:00
Kwanghyo Park 8dcf112a20 Graphs: add parameters to axis and drawOrder change signals
Based on API review: Modified axisXChanged, axisYChanged, and
drawOrderChanged signals to include the new values as parameters.
This enhances signal-slot usage by allowing receivers to directly access
the updated value without needing to query the sender, improving clarity
and performance in reactive code.

Task-number: QTBUG-137478
Change-Id: Ifb0ce50d812607a5036614deb653edd528e6db3d
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
(cherry picked from commit 0910f582e2)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-07-17 10:58:45 +00:00
Kwanghyo Park 3829364e43 Graphs: remove scaleRole constructor from QItemModelScatterDataProxy
Based on API review: Removed the constructor overload that
accepted a scaleRole parameter in QItemModelScatterDataProxy.

Task-number: QTBUG-137478
Change-Id: Iae85f6321e53189f68da5b15d586c9b52fadfd25
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
(cherry picked from commit 74ef58cc32)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-07-17 10:58:45 +00:00
Kwanghyo Park 02c563d059 Graphs: change enum values to hex
Based on API review: Updated DrawWireframe, DrawSurface, and
DrawFilledSurface enum values to use hexadecimal instead of decimal literals.

Task-number: QTBUG-137478
Change-Id: Ic96f424a2e5c60cf9a9ee500815a1c86cf890835
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
(cherry picked from commit ed9feacf85)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-07-17 10:58:45 +00:00
Kwanghyo Park 0ecb8795a3 Graphs: remove QScatterDataItem constructors with scale and rotation
Based on API review: Removed two constructor overloads of
QScatterDataItem that accepted scale and rotation parameters.
This cleanup likely reflects a shift toward more explicit property-based
initialization, simplifying the class interface.

Task-number: QTBUG-137478
Change-Id: I62e9b5b6087043272da37516f3f3988d363c031a
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
(cherry picked from commit f1ae92e76c)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-07-17 10:58:45 +00:00
Kwanghyo Park 0f18dfd753 Graphs: change setScale parameter to pass QVector3D by value
Based on API review: Updated the setScale method to take QVector3D
by value instead of const reference.

Task-number: QTBUG-137478
Change-Id: I4e0d9062cb90e840ddf2258d7772e7e1ce80a392
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
(cherry picked from commit 8ca4db6fa1)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-07-17 10:58:44 +00:00
Tomi Korpipaa 27bcbc5339 Stop polluting global namespace
Add missing QT_BEGIN_NAMESPACE and QT_END_NAMESPACE to:
- barinstancing_p.h
- scatterinstancing_p.h
- qquickgraphstexturedata_p.h

Remove duplicate QT_BEGIN_NAMESPACE and QT_END_NAMESPACE from:
- qxyseries.h

Pick-to: 6.9 6.8
Fixes: QTBUG-138462
Change-Id: I51bd1881bf37009b9d896892f14724f1bcd2bad3
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
(cherry picked from commit 7f65202dc5)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-07-17 10:22:53 +00:00
Tomi Korpipaa 94e1fbd640 Get rid of some clazy warnings in graphs2d/animation folder
Fix "c++11 range-loop might detach Qt container" warnings.

Pick-to: 6.9
Change-Id: If43b44b56d5e096bb787285dfc8d28ec344ea149
Reviewed-by: Jere Tuliniemi <jere.tuliniemi@qt.io>
(cherry picked from commit c955907133)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-07-17 07:23:54 +00:00
Tomi Korpipaa a7636357b7 Get rid of some clazy warnings in graphs2d/barchart folder
Fix "c++11 range-loop might detach Qt container" warnings.

Pick-to: 6.9
Change-Id: Icd1edd6ef07294b9929a7a68a6192c3a8a530f73
Reviewed-by: Jere Tuliniemi <jere.tuliniemi@qt.io>
(cherry picked from commit 1499c04fa7)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-07-17 07:23:48 +00:00
Tomi Korpipaa bde33c5619 Get rid of some clazy warnings in graphs2d/piechart folder
Fix "c++11 range-loop might detach Qt container" warnings.

Pick-to: 6.9
Change-Id: I3a61992a654fb09838ae005a67c0085eb8c1421c
Reviewed-by: Jere Tuliniemi <jere.tuliniemi@qt.io>
(cherry picked from commit 59d8120076)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-07-17 07:23:42 +00:00
Tomi Korpipaa 6b879d4250 Get rid of some clazy warnings in graphs2d/qsgrenderer folder
Fix "c++11 range-loop might detach Qt container" warnings.

Pick-to: 6.9
Change-Id: I6cfcff806ce6f2f27b4e2037106f72065bafbfcd
Reviewed-by: Jere Tuliniemi <jere.tuliniemi@qt.io>
(cherry picked from commit 6b6f6581e2)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-07-17 07:23:36 +00:00