summaryrefslogtreecommitdiffstats
path: root/src/graphs3d/qml
diff options
context:
space:
mode:
authorSakaria Pouke <[email protected]>2025-05-27 16:30:25 +0300
committerSami Varanka <[email protected]>2025-05-30 16:50:09 +0000
commit65f74386ef747a1ac6c0d223191cc20aa2feb718 (patch)
treead8cfcea0ba39b74aea0126d3f831ca134fe37f4 /src/graphs3d/qml
parentc1ccb5b83439203dcebe093ebb475d642d5b2973 (diff)
Add scale to scatter itemHEADdev
Also update ItemModelScatterDataProxy and ScatterItemModelHandler. Added manual test for vector fields. Fixes: QTBUG-134242 Task-number: QTBUG-134558 Change-Id: Ie4f128419ea176d1b8e0f8e874f447ce7fb35b39 Reviewed-by: Sami Varanka <[email protected]>
Diffstat (limited to 'src/graphs3d/qml')
-rw-r--r--src/graphs3d/qml/qquickgraphsscatter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/graphs3d/qml/qquickgraphsscatter.cpp b/src/graphs3d/qml/qquickgraphsscatter.cpp
index e0283173..5aa007bc 100644
--- a/src/graphs3d/qml/qquickgraphsscatter.cpp
+++ b/src/graphs3d/qml/qquickgraphsscatter.cpp
@@ -281,7 +281,7 @@ void QQuickGraphsScatter::updateScatterGraphItemPositions(ScatterModel *graphMod
totalRotation = cameraTarget()->rotation();
dataPoint->setRotation(totalRotation);
- dataPoint->setScale(QVector3D(itemSize, itemSize, itemSize));
+ dataPoint->setScale(QVector3D(itemSize, itemSize, itemSize) * item.scale());
} else {
dataPoint->setVisible(false);
}
@@ -326,7 +326,7 @@ void QQuickGraphsScatter::updateScatterGraphItemPositions(ScatterModel *graphMod
dih.position = {posX, posY, posZ};
}
dih.rotation = totalRotation;
- dih.scale = {itemSize, itemSize, itemSize};
+ dih.scale = QVector3D(itemSize, itemSize, itemSize) * item.scale();
positions.push_back(dih);
} else {