summaryrefslogtreecommitdiffstats
path: root/examples/datavisualization/graphgallery/surfacegraph.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use auto in graphgallery exampleFriedemann Kleint2023-06-121-41/+40
| | | | | | | | | Fixing clazy warnings about not repeating type names. Pick-to: 6.6 6.5 Task-number: QTBUG-110698 Change-Id: I574c79bc27ba93e2e84aa454281c8648cd5ddc47 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
* Fix the example licensesFriedemann Kleint2023-03-161-1/+1
| | | | | | | | Examples are BSD licensed Pick-to: 6.5 Change-Id: Ib2136fd1e09c0cb366b224558b36ab6808cf7b8e Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* graphgallery example: Factor out pixmap drawing functions from ↵Friedemann Kleint2023-03-031-48/+66
| | | | | | | | | | | SurfaceGraph::initialize() The function is already quite big. Pick-to: 6.5 Task-number: QTBUG-110698 Change-Id: I7e31b64064595a700365d3b1654705924a36052e Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* graphgallery example: Streamline the code a bitFriedemann Kleint2023-03-031-1/+1
| | | | | | | | | | | | - Populate the data rows using reserve()/append() instead of resize() / assign. - Use prefix increment - Use QStringView when splitting the data file lines Pick-to: 6.5 Task-number: QTBUG-110698 Change-Id: I70fed07a9850e2636e6085b9a9190f1e5a062a67 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* graphgallery example: Rearrange initializationFriedemann Kleint2023-03-031-11/+5
| | | | | | | | | | Calculate the sizes in main and pass them to the graph initialization functions. Also display the message box for GL errors in main. Pick-to: 6.5 Task-number: QTBUG-110698 Change-Id: I622311220e6ff63980b59778bfe9bb56922e6149 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* graphgallery example: Fix leaking modifier classesFriedemann Kleint2023-03-021-1/+1
| | | | | | | | | | | The modifier classes were leaking. Pass a parent to ensure their destruction. Remove the deletion of the graphs from their destructors since they are QWindows, which are deleted by QtGui. Pick-to: 6.5 Task-number: QTBUG-110698 Change-Id: Ied32dad62c93b730f63fa95994c4fc281254c800 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Fix bugs introduced by string literal fixTomi Korpipaa2023-03-011-5/+5
| | | | | | | | | Some text bugs were introduced in SHA 9c7c6e657ab848f5c252aa780a18e58ead3ee2f8 Pick-to: 6.5 Change-Id: If95f312fa5fb026270ac4aa637561acec2958b00 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
* graphgallery example: Create the window containers with a parentFriedemann Kleint2023-02-281-8/+5
| | | | | | | | | | This avoids the QWindow being created as a top level window with a frame. Pick-to: 6.5 Task-number: QTBUG-110698 Change-Id: I0a1116f833dd61c43a113c0e7a74a5181c1ee9b9 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
* Use new string literals in graphgallery exampleFriedemann Kleint2023-02-281-26/+29
| | | | | | | | Pick-to: 6.5 Task-number: QTBUG-110698 Change-Id: I110c297d08f6a24e402e514f36688b5bf4896c59 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
* Combine 3 more widget examples into graph galleryTomi Korpipaa2023-02-271-0/+335
Combine the remaining 3 surface graph examples into graph gallery example. Pick-to: 6.5 Task-number: QTBUG-110698 Change-Id: Ia324189e10f781f9822db220def72b7b15d37a49 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>