When selecting a point on the surface graph
and then changing to slice selection,
the slice view is not created. Then selecting
a slice point tries to update the slice view
which is not created. The solution: when updating
the slice view, create slice view if it's not
created already
Pick-to: 6.6
Fixes: QTBUG-116398
Change-Id: I63f0937f52450a72ed66828e056582c89c90e49a
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Replace the hardcoded spcularity value with one from
the theme's lightStrength
Pick-to: 6.6
Task-number: QTBUG-113272
Change-Id: I7a132290a0692cf7e6af11066735869baea2a020
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Sakaria Pouke <sakaria.pouke@qt.io>
Title labels for surface graph are now updated
Pick-to: 6.6
Fixes: QTBUG-115683
Change-Id: Ife8d59c40498c9b475bfd7583c943d510882fc3a
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Dilek Akcay <dilek.akcay@qt.io>
If the graph using textured material updated, keep the
texture
Pick-to: 6.6
Fixes: QTBUG-115684
Change-Id: Ibc258c3d1648b06dbf5acc6750c5c5d4c650c341
Reviewed-by: Sakaria Pouke <sakaria.pouke@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Dilek Akcay <dilek.akcay@qt.io>
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
This fix also reorganizes some code so that the updateModel function is called
before UpdateSelectedPoint.
Fixes: QTBUG-115940
Pick-to: 6.6
Change-Id: Ie7611936691c28bcb5257e2fac7e175c796a96f4
Reviewed-by: Dilek Akcay <dilek.akcay@qt.io>
Reviewed-by: Jere Tuliniemi <jere.tuliniemi@qt.io>
Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io>
Slice graph also follows the multi selection flag
Pick-to: 6.6
Fixes: QTBUG-112441
Change-Id: Icb29741285571caa499eacaf4ea69c9a1489e419
Reviewed-by: Dilek Akcay <dilek.akcay@qt.io>
Reviewed-by: Sakaria Pouke <sakaria.pouke@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
When series visibility is changed, the graphs was
not shown.
This commit fixed it
Fixes: QTBUG-114129
Pick-to: 6.6
Change-Id: Ic4e5a37b6ed47b3761ec33f1ad279e103d18eadf
Reviewed-by: Dilek Akcay <dilek.akcay@qt.io>
Reviewed-by: Sakaria Pouke <sakaria.pouke@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
The label goes behind graphs when the selected position
is behind the graph.
Fixes: QTBUG-113525
Pick-to: 6.6
Change-Id: Id34c283725d20b6907249ead7cd4397b9fdb0328
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
Object gradient support for surface enabled
Task-number: QTBUG-112325
Pick-to: 6.6
Change-Id: I7b9276398e523a5f2fc38ee4d75219af758e351d
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Add support when the file is set as a source of a texture
Task-number: QTBUG-99842
Change-Id: I57264501aabd4d2cf294d94f1cd4f51440b94e52
Reviewed-by: Dilek Akcay <dilek.akcay@qt.io>
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
Reviewed-by: Jere Tuliniemi <jere.tuliniemi@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
When the data is updated, the slice graph is not shown
properly and does not show correct graph.
Fixes: QTBUG-113540
Change-Id: Ie709c8c1d9e89b9761fe4898abb0085f55e4ebea
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Enhance the rendering performance by reducing
rendering calculation
Task-number: QTBUG-108129
Change-Id: I99f554104e7dcc53e16538cca0f72f5b385e5557
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
There could be cases that the graphs have different
size of series but selected.
Task-number: QTBUG-112729
Change-Id: Ib6c017fd27d82f4e5ab24d56ef54ce541a90f4dd
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
When changing the data of series, the slice view
handling is updated to fix crash
Task-number: QTBUG-112242
Change-Id: I49578d8fbc19d326928138e3ea6abc9e7f85ff24
Reviewed-by: Dilek Akcay <dilek.akcay@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
When graph grid is on, picking other than graph still gets picked
It is due to picking of Line primitive geometry is not the same as
picking Triangles primitive.
Make the surface graph still there but not visible to be picked on
an exact point
Task-number: QTBUG-112442
Change-Id: Ibcce25041ededc64e5f0dbe048843aec71f2e485
Reviewed-by: Dilek Akcay <dilek.akcay@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
The surface graph disappears in a certain sequence.
Clean up the logic to handle mouse pressed to avoid such issue
Task-number: QTBUG-112279
Change-Id: I07bf7772e473179785be047043227a6e7a399d4e
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
AspecRatio and horizontalAspectRatio is used to calculate
scale
Task-number: QTBUG-112359
Change-Id: I5fb1316c2955e11d44df53c833ab07f36dcd7cf4
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Support range gradient with custom material
Task-number: QTBUG-112285
Change-Id: I681fcdaba67a82f54c9807e5a040bce740be0343
Reviewed-by: Dilek Akcay <dilek.akcay@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Add support for orthographic camera on main graph view
Task-number: QTBUG-112144
Change-Id: I80a3a9f9d3be2b7e7c627a51e2d7db9da39fa96e
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
The slice view is created when there is a first interaction
requires slice view so that the slice view can retrieve the
size of the main view.
Task-number: QTBUG-111672
Change-Id: I2ad83ca023deaf70990fed2080599da0bf12e5a6
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>