Commit Graph

44 Commits

Author SHA1 Message Date
Marc Mutz cfe277399d Include what you use: qquaternion.h
qmatrix4x4.h will lose its qquaternion.h include, so include
qquaternion.h explicitly in all files that mention 'QQuaternion',
unless, for a foo.cpp, the own foo.h has already included it.

Also add forward declarations, where needed.

Amends the start of this module's history.

Pick-to: 6.8
Change-Id: I605bf742be5bb92a676704f12d738d241bd9b0da
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
(cherry picked from commit 6a44c5fe57)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit e23fb8de70)
2025-07-14 23:56:37 +00:00
Friedemann Kleint ed3893c5b1 widgetgraphgallery: Fix some clang-tidy warnings
Change-Id: I180ec5481b1eafc8a537f7b37cbea0567a2bbe52
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
(cherry picked from commit 1467296bfa)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-05-13 10:35:06 +00:00
Friedemann Kleint 694119fca5 widgetgraphgallery example: Remove unused variables
Pick-to: 6.8
Change-Id: I3ca36fe611c64d038c8aae1c0207f33519be3ecc
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
(cherry picked from commit 44fe58c4d5)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-05-09 06:00:27 +00:00
Niko Korkala 96c0d88ff4 mark rainfallData.cpp as safety critical file
reasoning: we are reading a text file from disk without doing any sanity checks

Task-number: QTBUG-127255
Pick-to: 6.8
Change-Id: Ie911841541c7423b039a733091eaa65d21810b16
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
(cherry picked from commit 2ffc84aea4)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-03-17 08:49:00 +00:00
Tomi Korpipaa 9d6edfb25b Fix scaling of custom objects in widgetgraphgallery example
Custom object scaling had a bug before 6.9 which made them
2 times too small by default. Adjust scaling in the example
to take that into account.

Change-Id: I0b3bfa4fe8606394765372d96d19f4c82e63087e
Reviewed-by: Sakaria Pouke <sakaria.pouke@qt.io>
Reviewed-by: Niko Korkala <niko.korkala@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
(cherry picked from commit 772873717a)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
2025-02-14 09:55:16 +00:00
Tomi Korpipaa 06ec3cf621 Prevent building widget examples for nonsupported platforms
Users were still able to try and build widget examples
stand-alone on Android, for instance. Prevent it.

Pick-to: 6.8 6.8.0
Fixes: QTBUG-128799
Change-Id: I398b8c724e038d5142bbd5a3a2aa8c8ead17a1c2
Reviewed-by: Sakaria Pouke <sakaria.pouke@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
2024-09-12 03:58:57 +00:00
Dilek Akcay 7177169156 Fix resizing issue in widgetgraphgallery
Fixes: QTBUG-128432
Pick-to: 6.8 6.8.0
Change-Id: Ib10791960b4b9780a7da1c8753001c6daf28ce5e
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2024-09-11 07:18:41 +00:00
Kwanghyo Park 7dc92c5993 Fix issues on widget 3d examples on iOS
QML plugins are missing for static build such as iOS.
Also issues on iOS when using QuickWidget in TabWidget

Pick-to: 6.8
Task-number: QTBUG-125480
Change-Id: I398ff13fab49731bb58d94018bc760f5125a9c66
Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io>
2024-08-27 13:55:11 +03:00
Alexei Cazacov c9a337d132 Docs: Qt Graphs - improve the documentation readability and style
This commit improves the readability, structure, style, and formatting
of the Qt Graphs docs. It also corrects several minor issues and broken
links.

Task-number: QTBUG-127820
Pick-to: 6.8
Change-Id: Ie564fde207f7059f6cd064ab74599aad0753ea6f
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
2024-08-26 13:07:03 +03:00
Tomi Korpipaa 9515142cfb Update widgetgraphgallery and docs
Pick-to: 6.8
Fixes: QTBUG-126830
Change-Id: I1a2e1a157c6243d43fc3d5e5c334e2744671aa1d
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2024-08-08 08:30:34 +03:00
Sami Varanka 7569772b09 Rename labelAutoRotation to labelAutoAngle
Pick-to: 6.8
Task-number: QTBUG-125364
Change-Id: I74c9c556708616aba45beeb9d5d4a356bb391198
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2024-07-31 09:15:28 +03:00
Jere Tuliniemi 81c8f453c3 Change colors when platform color scheme changes
Add a connection to listen to platform color changes. This is done by
adding an internal color scheme enum that contains Automatic value
in addition to Unknown, Light and Dark. The user can opt in and out
of the automatic behavior by setting the color scheme with the new
enum.

Fixes: QTBUG-125782
Pick-to: 6.8
Change-Id: I21a82269d498b1fc17c675bcedae7fd71bc36e1c
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
2024-07-26 09:02:54 +03:00
Dilek Akcay c86ee31bf3 Add an enum class for shading type in Surface3D
Task-number: QTBUG-126146
Pick-to: 6.8
Change-Id: Ide9bd731f348fb83cb10863efc4aa25484d9fac0
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2024-07-15 15:46:48 +03:00
Dilek Akcay 5ab016949c Fix remaining parts of Abstract3DGraphWidget in docs
Task-number: QTBUG-125768
Pick-to: 6.8
Change-Id: Id1ddb84797b797042e732c1d3da8a0030a0a7920
Reviewed-by: Sakaria Pouke <sakaria.pouke@qt.io>
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2024-07-15 13:08:31 +03:00
Dilek Akcay dfd54c826c Change QGraphs3D namespace name to QtGraphs3D
Task-number: QTBUG-125886
Pick-to: 6.8
Change-Id: Ifcde54306e518c352d9b354c9bfe92c52c0bb0e3
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2024-06-19 14:09:12 +00:00
Sami Varanka 3e570bf59d Use composition with QQuickWidget
Pick-to: 6.8
Task-number: QTBUG-125771
Change-Id: Id7e5a0b730f47d2a38916c52cd3ab0a0a453c0b8
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2024-06-13 10:29:48 +02:00
Dilek Akcay f51cb5027e Change 'enabled' properties to visible in 3D
Task-number: QTBUG-125377
Pick-to: 6.8
Change-Id: I342bb9e6a125867fb5e2bcc858d5254047a3ac23
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io>
2024-06-11 09:29:53 +00:00
Alexei Cazacov 1d42f9bcbb Docs: Add \qmlsignal descriptions for Qt Graphs 3D
Unify docs for QML properties \qmlsignal use.
Signals for {propertyName}Changed should be documented.

Move qml docs to proper source files.

Task-number: QTBUG-123522
Pick-to: 6.8
Change-Id: I47f34d10dc6bbf46d3c9712cee5d27aa5968a598
Reviewed-by: Nicholas Bennett <nicholas.bennett@qt.io>
2024-06-03 11:33:03 +00:00
Dilek Akcay 0c2ca80e6a Change 'enabled' properties to visible in GraphsTheme
Task-number: QTBUG-125377
Change-Id: I3e7ad9ec44e58af221b94cbe46186b92c0ae5a63
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2024-05-31 10:22:00 +03:00
Dilek Akcay 98d5b4ebfd Change SelectionFlag enum to enum class
Task-number: QTBUG-125365
Change-Id: Id890ab19b0126f503824778c06a506dfb706c7b4
Reviewed-by: Sakaria Pouke <sakaria.pouke@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2024-05-30 09:51:22 +00:00
Kwanghyo Park 752dc742c8 Fix dragging event on widget graph gallery example
Fixes: QTBUG-125855
Change-Id: Ia6df6f72566a2ad297d5036c8b9ea67cb3bbc7a5
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2024-05-29 08:52:39 +03:00
Sami Varanka d4e5e224d1 Move widgets to another module
Fixes: QTBUG-125719
Change-Id: Ieeab2e64d0d2a3a8d3969df5384b7ddd0fd180b7
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
2024-05-28 18:33:49 +03:00
Sami Varanka aae5e99117 Move enums away from QAbstract3DGraph
Fixes: QTBUG-125409
Change-Id: Ide84873da6fe4f59399c8c5f25416db5ae547620
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
2024-05-22 19:02:19 +03:00
Tomi Korpipaa 3520a9eea7 Fix examples and manual tests for background toggling
The naming of window/background/plotAreaBackground
created a couple of wrong behaviors in the examples.

Change-Id: I9932962e2567823ec72178ab2f5d4a70251ea299
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io>
2024-05-14 08:15:58 +03:00
Tomi Korpipaa 8b35f29dc5 Force ES3 for WebAssembly in examples
Task-number: QTBUG-121503
Change-Id: I3882c3cfb0f4795d142742d90728ec1bada7e5c6
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
2024-05-07 11:55:16 +03:00
Tomi Korpipaa 245de1eb02 Fix some example docs issues
Change-Id: Iec5e1425dbd0bdab463fd860f33341d3b5dcbb65
Reviewed-by: Dilek Akcay <dilek.akcay@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io>
2024-05-03 08:57:42 +03:00
Tomi Korpipaa f2dbec757a Re-theme Graph Gallery example
Task-number: QTBUG-124883
Change-Id: I368c9d569748e1a06c17cf19ee114ca6a8665b43
Reviewed-by: Sakaria Pouke <sakaria.pouke@qt.io>
Reviewed-by: Dilek Akcay <dilek.akcay@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2024-05-02 12:22:51 +03:00
Kwanghyo Park c8be94138e Introduce integrated theme for graphs
Task-number: QTBUG-123223
Task-number: QTBUG-123461
Task-number: QTBUG-124837
Task-number: QTBUG-124836
Change-Id: Iaa5ab35a0707fc63329b07f10a203fc63e033f0d
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2024-04-30 08:15:46 +03:00
Topi Reinio 1e4785210a Doc: Fix issues in documentation configuration
- Remove duplicate entries for source directories from
  qtgraphs.qdocconf.

- Qualify \snippet paths with '2d' or '3d'.

- Add correct examples.url to get automatic linking to example
  projects in code.qt.io.

Pick-to: 6.7
Change-Id: I15ebf35b9e8ee4f6ff9dcbcfad3d11b37fb9a608
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2024-04-05 10:59:07 +00:00
Sakaria Pouke 56acb72aaa Fix topography example zooming
Fixes: QTBUG-123371
Change-Id: I08a89414eb146292197e9d71166ce320a1dca328
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Dilek Akcay <dilek.akcay@qt.io>
2024-04-03 13:16:39 +03:00
Lucie Gérard b373ea966a Correct license for example and snippet files
According to QUIP-18 [1], all example and snippet
files should be
LicenseRef-Qt-Commercial OR BSD-3-Clause

[1]: https://contribute.qt-project.org/quips/18

Pick-to: 6.7
Task-number: QTBUG-121787
Change-Id: I7c56c6ea4a37ba258008c395d1e637e381d34e7f
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
2024-03-15 14:39:34 +01:00
Dilek Akcay b6b3725052 Update widgetgraphgallery example doc
- Minor grammars have been fixed.
- Clang-format has been applied to the required lines.
- Changes have been made to the places where mentioned about proxy-series-data relationship.

Task-number: QTBUG-112471
Change-Id: I4ab9826340220f7ee7959b733e0c6358c5d9d7ec
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Sakaria Pouke <sakaria.pouke@qt.io>
2024-03-14 09:05:42 +00:00
Sakaria Pouke ddc76bb7ea Add grabChanged signal to 3D graphs
Allows the signal to be connected to for custom input handling

Fixes: QTBUG-122428
Change-Id: Ide9875454f9fee4431ed0fc8036b6cf967a01b94
Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
Reviewed-by: Dilek Akcay <dilek.akcay@qt.io>
2024-03-11 11:11:32 +02:00
Topi Reinio d8ec4130c3 Doc: Move examples to 'Data Visualization' category
Pick-to: 6.7
Task-number: QTBUG-122377
Change-Id: I784ac00a98408bd5543f25aeeeb320d77051701a
Reviewed-by: Kai Köhne <kai.koehne@qt.io>
2024-02-21 09:51:05 +00:00
Tomi Korpipaa 9cd5512c79 Fix docs concerning Q3DScene
Task-number: QTBUG-112471
Pick-to: 6.7
Change-Id: I61b8858e60a72a0bba10a8af063579a6fbda67d2
Reviewed-by: Sakaria Pouke <sakaria.pouke@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Dilek Akcay <dilek.akcay@qt.io>
2024-02-19 14:19:24 +02:00
Tomi Korpipaa d77ffd5b1f Change the naming of Qt Graphs 2D/3D
Task-number: QTBUG-112471
Pick-to: 6.7
Change-Id: I5a05b873e64711e1d8e29dc32b606b7f895b24fd
Reviewed-by: Jere Tuliniemi <jere.tuliniemi@qt.io>
Reviewed-by: Sakaria Pouke <sakaria.pouke@qt.io>
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
2024-02-15 19:40:06 +02:00
Tomi Korpipaa 3c4a38f974 Change signal to a non-deprecated one
'stateChanged' is deprecated: Use checkStateChanged() instead
:40:19: note: 'stateChanged' has been explicitly marked deprecated here

Change-Id: Ia5c56ede77277cf99863675f50652bcf5dfa6716
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
Reviewed-by: Sakaria Pouke <sakaria.pouke@qt.io>
2024-02-13 00:14:53 +02:00
Tomi Korpipaa 04ddefbf4f Set resize mode in constructor
Doing this removes the need to add setting the resize mode
on application code.

Fixes: QTBUG-121998
Pick-to: 6.6 6.7
Change-Id: I6545913cc1e8ebf9713f0244a6892b7d5a019a49
Reviewed-by: Sakaria Pouke <sakaria.pouke@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2024-02-12 07:05:22 +02:00
Dilek Akcay 085ea530d8 Remove data members from proxy in surface
Task-number: QTBUG-117226
Change-Id: I85290d5bd25c67f8702dbbfb16b507980aeec4ba
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2024-02-01 15:51:40 +02:00
Kwanghyo Park a8407863b0 Fix link errors on documentation
There are updates on APIs and this should be also
updated to document which can provide proper link

Fixes: QTBUG-121400
Change-Id: I75676182360013ec4745baead65d43679e69555c
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2024-01-25 11:00:19 +02:00
Tomi Korpipaa 05ad021833 Reorganize documentation
Documentation for 2D and 3D is mixed in places. Reorganize docs to
do a clean separation between 2D and 3D docs in the folder structure.

Pick-to: 6.7
Change-Id: Idf567c01c1d3967815c534486b132bb55285263e
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Dilek Akcay <dilek.akcay@qt.io>
Reviewed-by: Sakaria Pouke <sakaria.pouke@qt.io>
Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io>
2024-01-25 08:10:28 +02:00
Kwanghyo Park 58780ff563 Revamp InputHandlers
The previoud input handlers have complicated architecture
to handle various types of inputs and also due to the previous
graphs' architecture.

This introduces a new approach which uses the quick handlers
for any types of input and also uses signal-slot based event
handling instead of setting custom input handlers.

Fixes: QTBUG-114451
Change-Id: I981ac8042fa43d20581605f4c42b25e9d0aa465d
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2024-01-22 06:52:41 +02:00
Tomi Korpipaa 5efb182d8d Create a skeleton for QtGraphs 2D documentation
Task-number: QTBUG-120593
Pick-to: 6.7
Change-Id: I22e2ce43a44dd074a9100b93839c74cd0a38bb56
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2024-01-11 10:48:54 +02:00
Kai Köhne 60542fd8ee Re-establish common examples/graphs dir
qdoc expects a common installation directory for all examples in a
documentation project.

Fixes: QTBUG-120562
Pick-to: 6.7
Change-Id: Iafcc3b1867e62179aabe991e6d4013dafaf61678
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2024-01-09 07:10:03 +01:00