Commit Graph

24 Commits

Author SHA1 Message Date
Niko Korkala 12e2be4741 Add readonly visual min and max properties to QValueAxis and QDateTimeAxis
Task-number: QTBUG-142046
Change-Id: I25ab89809d28f3efa27bc83a7a455d3ab2a82a90
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2025-12-03 13:06:19 +02:00
Niko Korkala 7bee03a157 add categorized logging for graphs 2d pt1
qt.graphs2d.general for general purpose logging,
qt.graphs2d.series for series related logging,
qt.graphs2d.series.properties logs property changes only if they fail
qt.graphs2d.critical for critical logging
qt.graphs2d.animation for animation state logging
qt.graphs2d.axis.properties for axis properties logging

Task-number: QTBUG-128886
Change-Id: Ie0173ad15832708304579560200094b63fef7502
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2025-04-03 11:06:05 +03:00
Tomi Korpipää b047a8fb51 API comparison review findings
Pick-to: 6.9
Change-Id: I933a9be8673184c785b0317367d78ac54040073b
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
2025-01-13 08:58:15 +02:00
Jere Tuliniemi bc3f814069 Add docs for zoom and pan properties
Pick-to: 6.9
Task-number: QTBUG-122325
Change-Id: I8cac52ae9c7de4e1057b483fd0d25cd13bc88e6b
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2024-12-10 10:26:41 +02:00
Jere Tuliniemi 3e2f152868 Implement zooming and panning for ValueAxis
Task-number: QTBUG-122325
Change-Id: I98975139168fcdb10178352bbc8f959be26b3090
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2024-12-04 12:43:43 +02:00
Paul Wicking ad5d1f5fdd Doc: Replace \instantiates with \nativetype
Since the implementation of the `\nativetype`-command in QDoc,
the `\instantiates`-command is deprecated. Replace the use of the
deprecated command in favor of its replacement.

Pick-to: 6.8
Task-number: QTBUG-128216
Change-Id: Ie37fa07d93574b48710f5b6b084beca291635f59
Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
2024-08-20 10:48:30 +00:00
Sami Varanka ffb5e3a6ed Change int to qsizetype where feasible
Pick-to: 6.8
Task-number: QTBUG-127118
Change-Id: I19c14892f6f3c63f8efecef04692e9981e974bfc
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2024-07-31 11:09:28 +03:00
Sami Varanka a41a7ad228 Change qWarnings to use recommended printf form
Pick-to: 6.8
Change-Id: I35f8c395152e1361a2ac13f81c28a15dc3b966c7
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2024-07-29 15:47:53 +03:00
Kaj Grönholm 233bb360e1 Remove axis from GraphsView when deleted
When axis gets deleted, remove it properly from then GraphsView.
Includes autotest to verify.

Task-number: QTBUG-127460
Pick-to: 6.8
Change-Id: I4ad6ee477dde6ac09e65bcab690783603a2de2be
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
2024-07-24 11:23:14 +03:00
Kaj Grönholm 55b791d6f7 API: Unify grid and axis naming
Remove major/minor and instead use grid/subGrid in grid and
tick/subTick in axis.

Task-number: QTBUG-124679
Change-Id: I1dd3a54112ae2dab46854321e3be6a31cad7ff44
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2024-05-31 12:32:45 +03:00
Alexei Cazacov 983241ab43 Docs: Add \qmlsignal descriptions for Qt Graphs 2D
Unify docs for QML properties \qmlsignal use.
Signals should be documented.
Removed similar signals for C++ classes.

Task-number: QTBUG-123522
Change-Id: I179ee6526115f3e224ea8336c59aa38a1c0e44f2
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2024-05-29 08:03:28 +00:00
Jere Tuliniemi dd9aaaee1e Move axis properties to GraphsView
Also moves orientation from BarSeries to GraphView although other
series don't yet support horizontal orientation.

Task-number: QTBUG-125007
Change-Id: Id8cd724d0f74cc61185e66ad884db110efd84293
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io>
2024-05-03 10:02:46 +03:00
Kaj Grönholm 867d1c9898 Change all enums to scoped
Change all enums to scoped ones and:
- Rename enums to not contain type in the beginning.
- AxisType can be normal enum (not flags) and AxisTypeNoAxis is
  not needed.
- Fix BarThemes example initial color & font reset.

Fixes: QTBUG-123794
Change-Id: I8d7305dc7c09d0d6ac09b88cfc6f7297035e0207
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2024-04-04 10:40:21 +03:00
Sami Varanka 0f71e4c729 2D: remove extra q and d ptr from axis
Task-number: QTBUG-121985
Change-Id: I4c68f63e7ee9822978457de08ba98b06b5452ccb
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2024-03-24 19:14:44 +02:00
Tomi Korpipaa bd9c64c61d Replace references to chart and Qt Charts
Fixes: QTBUG-122030
Pick-to: 6.7
Change-Id: I3e721c2da72ddcbfe51cafe6f6cecb3b31466d83
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
2024-02-07 11:27:08 +02:00
Tomi Korpipaa 0e25823cb0 Fix clazy warnings from public headers
Also fix some signaling warnings, as emit was missing in several
places when calling a signal.

Fixes: QTBUG-121905
Pick-to: 6.7
Change-Id: Ic7c528ba6b27cd5c8b7c55e15afd55111fac428e
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2024-02-06 13:18:32 +02:00
Kaj Grönholm d755a92183 Improve ValueAxis documentation
Task-number: QTBUG-121652
Pick-to: 6.7
Change-Id: I15e4db8355d0170d0e4411afe501676113b38841
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
2024-01-30 09:14:52 +02:00
Tomi Korpipaa 4b226ac0d9 Split C++ API docs to 2D and 3D
Task-number: QTBUG-120593
Pick-to: 6.7
Change-Id: I1c6bc9bc98e52c18b7938f651832b018281ba487
Reviewed-by: Jere Tuliniemi <jere.tuliniemi@qt.io>
Reviewed-by: Sami Varanka <sami.varanka@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2024-01-18 09:33:36 +02:00
Tomi Korpipaa 89f3697015 Add 2D and 3D into the same module depending on feature flags
Task-number: QTBUG-119920
Pick-to: 6.7
Change-Id: I4f3fb7f85de710157abc92c63ed1a970dc1d37e4
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
Reviewed-by: <owais.akhtar@qt.io>
Reviewed-by: Jere Tuliniemi <jere.tuliniemi@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
2024-01-17 10:20:42 +02:00
Kaj Grönholm be388b52b3 Remove AbstractDomain
This concept is not used in QtGraphs2D, so remove it.

Pick-to: 6.7
Change-Id: Iff61ad73dff816f653b1d41247beb454c165a314
Reviewed-by: <owais.akhtar@qt.io>
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
Reviewed-by: Jere Tuliniemi <jere.tuliniemi@qt.io>
2024-01-16 13:18:39 +02:00
Kaj Grönholm c60460b9d4 Improvements into QValueAxis
- Make the axis scalable, so step size is not always 1.
- API to define step size manually, and the label format & decimals.
- Remove unused API.

Task-number: QTBUG-120203
Task-number: QTBUG-119952
Pick-to: 6.7
Change-Id: If30e41bd06f210b703b64abf65a0d2b31bf9d95c
Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io>
2024-01-16 13:18:33 +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
Kaj Grönholm 5b4fb2c2ce Remove QValueAxis autoscale
Charts doesn't have this feature and probably graphs shouldn't have it
either. Calculating min & max automatically can be heavy operation when
the data amount grows, so it is maybe better to rely users always
setting min & max as they wish.

Task-number: QTBUG-120165
Pick-to: 6.7
Change-Id: I72b6ef0ffcf8733259825a589bf13a425be23ca5
Reviewed-by: Jere Tuliniemi <jere.tuliniemi@qt.io>
2023-12-18 14:15:37 +02:00
Kaj Grönholm 2f7ca0faaf Add QtGraphs 2D
Initial commit of QtGraphs 2D.

Task-number: QTBUG-117659
Change-Id: I7ca6bbc5b332af1c8118d8627337aee7059aae9f
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
2023-12-08 22:03:53 +02:00