summaryrefslogtreecommitdiffstats
path: root/examples/datavisualization/graphgallery/scatterdatamodifier.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use auto in graphgallery exampleFriedemann Kleint2023-06-121-3/+3
| | | | | | | | | | Fixing clazy warnings about not repeating type names. Task-number: QTBUG-110698 Change-Id: I574c79bc27ba93e2e84aa454281c8648cd5ddc47 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> (cherry picked from commit c0f6506eda7ebd7f61f7c03b6d9a59cc530a7116) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Fix the example licensesFriedemann Kleint2023-03-161-1/+1
| | | | | | | | | Examples are BSD licensed Change-Id: Ib2136fd1e09c0cb366b224558b36ab6808cf7b8e Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> (cherry picked from commit aaf72bd938c4aacb92a6a6f726c30b856e1158ac) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* graphgallery example: Streamline the code a bitFriedemann Kleint2023-03-031-22/+17
| | | | | | | | | | | | | - Populate the data rows using reserve()/append() instead of resize() / assign. - Use prefix increment - Use QStringView when splitting the data file lines Task-number: QTBUG-110698 Change-Id: I70fed07a9850e2636e6085b9a9190f1e5a062a67 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> (cherry picked from commit ed80c940b659455e2bd98700157f5fc78a17b41c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* graphgallery example: Fix leaking modifier classesFriedemann Kleint2023-03-021-7/+3
| | | | | | | | | | | | 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. Task-number: QTBUG-110698 Change-Id: Ied32dad62c93b730f63fa95994c4fc281254c800 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> (cherry picked from commit f289b0b14d174d7c891a225c4e81f67573d8c555) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* graphgallery example: Do not cast enum values to int in combo item dataFriedemann Kleint2023-03-011-1/+1
| | | | | | | | | | | Enumerations are now known to the meta type system, no casts are required. Task-number: QTBUG-110698 Change-Id: I02398a5318547b798f9c95f8ed834443b46a58c5 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> (cherry picked from commit a4358dabd997e11f7bcd2e4a9437ffaff2a0d46c) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Use new string literals in graphgallery exampleFriedemann Kleint2023-02-281-1/+3
| | | | | | | | | 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> (cherry picked from commit 9c7c6e657ab848f5c252aa780a18e58ead3ee2f8) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Brush up the graphgallery exampleFriedemann Kleint2023-02-281-1/+1
| | | | | | | | | | | | | | | | | | | | | - Basic C++ polishing: - Use nullptr - Use initializer lists - Replace typedef by using - Port to qsizetype - Default functions - Fix up copy constructor and assignent - Instantiate the main widget, BarGraph and ScatterGraph on the stack for proper clean up Amends 00272ac80843d94217e4f1ea36392e22919afa22. Task-number: QTBUG-110698 Change-Id: Ibb9e3ecf5e20ebaaeac2483c768d7b5eb00c0558 Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> (cherry picked from commit 5f98f32634dc49feaed12d4798838e2da9f28194) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* Combine 2 more widget examples into graph galleryTomi Korpipaa2023-02-271-0/+198
Combine the 2 scatter graph examples into graph gallery example. Note: surface examples will be combined into graph gallery in other commits, to avoid making one gigantic commit. Task-number: QTBUG-110698 Change-Id: I8c50d07a31a8b1ee84596f4e216e629d88c7846a Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> (cherry picked from commit cbaa2eaaf73ffa0d2b4ba999c993199fc22110ea) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>