summaryrefslogtreecommitdiffstats
path: root/tests/manual
Commit message (Collapse)AuthorAgeFilesLines
* Place minor tickmarks on horizontal axis correctlyPaul Olav Tvete2019-12-052-4/+12
| | | | | | | | | | | | | | It looks like top and bottom was accidentally swapped when the dynamic tickmarks feature was added. This resulted in the minor tickmarks being drawn on the opposite edge of the canvas from the axis and the major tickmarks. Also modified the manual test to make drawing the grid optional, so the position of the tick marks can be seen more easily. Fixes: QTBUG-79349 Change-Id: Ia25c656d3d66ee0e6dd908504ec5c81cd2555bde Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* QtChart: Remove deprecated QPainter::HighQualityAntialiasingChristian Ehrlicher2019-05-271-4/+1
| | | | | | | | | | QPainter::HighQualityAntialiasing is deprecated and should be replaced by QPainter::Antialiasing Change-Id: Ib4eeea6c17d82d87fb4270f146a6604ce5c8d5fb Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* Fix deprecation warningsFriedemann Kleint2019-05-271-1/+1
| | | | | | | | | | | Fix warnings: animations/axisanimation.cpp:117:51: warning: 'QVariant qVariantFromValue(const T&) [with T = QVector<double>]' is deprecated: Use QVariant::fromValue() instead. [-Wdeprecated-declarations] ... axis/chartaxiselement.cpp:385:64: warning: 'QString& QString::sprintf(const char*, ...)' is deprecated: Use asprintf(), arg() or QTextStream instead [-Wdeprecated-declarations] ... Change-Id: Ib36d7e09b737110323b816442b36ca2b2e79d6a5 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* Migrate manual test's ChartViewer to QRegularExpressionSamuel Gaist2018-06-191-5/+7
| | | | | | | | | This patch updates the manual test ChartViewer class to use QRegularExpression in place of QRegExp which is to be considered deprecated. Change-Id: I111c6caedea0e95f87c785ecb57cdc2211dedc51 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* Add labelsPrecision property to bar chartsKari Oikarinen2017-12-217-1/+27
| | | | | | | | | | Allow choosing the number of significant digits in the value labels for the bars. Before this this has been hardcoded to 6, so the default value stays as 6 for backward compatibility. Task-number: QTBUG-64370 Change-Id: I022bdad21aca7a7750ed46181b4ec97726bd9dc5 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* Merge "Merge remote-tracking branch 'origin/5.9' into 5.10" into ↵v5.10.0-beta4Liang Qi2017-11-031-1/+2
|\ | | | | | | refs/staging/5.10
| * Merge remote-tracking branch 'origin/5.9' into 5.10Liang Qi2017-11-031-1/+2
| |\ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: .qmake.conf tests/manual/chartwidgettest/mainwidget.cpp tests/manual/wavechart/wavechart.cpp Change-Id: I18962ddc37a91daa23571eb04e35eec828aceef8
| | * Use proper math.h/cmath includesJake Petroules2017-10-072-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | This is necessary to use math functions with and without the std:: namespace qualifier. Change-Id: I2f404d0e57a71758ee070b8b752ebcc41c4e292c Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* | | Update to new QRandomGenerator APIThiago Macieira2017-11-037-9/+9
|/ / | | | | | | | | Change-Id: I69f37f9304f24709a823fffd14e676c097712329 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* | Use QRandomGenerator instead of q?randThiago Macieira2017-07-048-22/+18
| | | | | | | | | | Change-Id: Icd0e0d4b27cb4e5eb892fffd14b5285d43f4afbf Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* | Be (somewhat more) consistent about the value of piEdward Welbourne2017-06-143-9/+8
|/ | | | | | | | | Use M_PI in C++ and Math.PI in JavaScript (including QML). Use qmath.h's value for M_PI where we can't avoid an explicit value. Task-number: QTBUG-58083 Change-Id: I80c81444c1867f8f0c07f192fa68de933f48bbc4 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* Remove uses of QString::nullMarc Mutz2017-03-1110-10/+10
| | | | | | | It's going to be deprecated. Change-Id: I9d176c802f27abf5c817dba8bedf9e5fcd911eca Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Add support for more than one bar seriesMiikka Heikkinen2016-10-042-113/+223
| | | | | | | | | | | | | | Now charts properly positions bars if there are more than one bar series in the chart. Theming was changed to account for more than one bar series in the chart. This patch also fixes various animation errors that were exposed by adding/removing the series to/from an existing chart. Task-number: QTBUG-52379 Change-Id: I4a8bc7e1675191ff87966ec4ca3d01e2b7cb815d Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* Add a possibility to change legend marker shapeMiikka Heikkinen2016-09-231-0/+12
| | | | | | | | | | | It is now possible to choose between rectangular, circular, and "from series" shapes for legend markers. The "from series" shape uses scatter dot items as legend markers in case of scatter series and a line segment for line and spline series. Task-number: QTBUG-50682 Change-Id: I58977ead88e1274e1f163516d32c4d290f4410f9 Reviewed-by: Andy Shaw <andy.shaw@qt.io>
* Optimize barcharts paintingMiikka Heikkinen2016-09-195-1/+444
| | | | | | | | | | | | | | | | | | | | Previously, bar charts used to recreate the bar chart visuals from scratch whenever any change to the bar data occurred. The following changes were made: - Graphics items are generated only for visible bars and labels - Graphics items are reused if layout or data changes - Labels are not generated unless they are visible - Only newly added bars are animated from scratch; existing bars will retain their size, making things more visually pleasing. With these optimizations, the size of the bar series is irrelevant to the painting performance, only thing that matters is how many bars and labels are actually within visible range. Task-number: QTBUG-52442 Change-Id: If3199a86e6819ef6219d2eb5f06d729c0bdbd2ae Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* Add mouse events support for OpenGL accelerated seriesMiikka Heikkinen2016-08-247-7/+118
| | | | | | | | | | On QML side, the mouse events for accelerated series work asynchronously, as the rendering is typically done in a different thread. Change-Id: I08c478768b40ed90b34b0904b7a3e74e315c3caa Reviewed-by: Mika Salmela <mika.salmela@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* Fix antialiasing support of OpenGL accelerated seriesMiikka Heikkinen2016-08-173-0/+24
| | | | | | | | | | | OpenGL accelerated series are now antialiased similarly to non-accelerated series. Task-number: QTRD-2172 Change-Id: Ie8bc014c82d5fa645cf41ab56bebb99fcf8ad301 Reviewed-by: Mika Salmela <mika.salmela@qt.io> Reviewed-by: Tomi Korpipää <tomi.korpipaa@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* Update candlestick chart model mappers APIAlexander Mishin2016-06-141-16/+16
| | | | | | | | | | | - updated QCandlestickModelMapper - updated QHCandlestickModelMapper - updated QVCandlestickModelMapper - renamed QCandlestickSeries::candlestickSets() to sets() Task-number: QTBUG-54046 Change-Id: I650e5237a257c85905818db8dc2e2f2cf0af5aad Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* Added candlestick chart typeAlexander Mishin2016-05-257-1/+1090
| | | | | | | | | | | | | | | | | | | | | | - added QCandlestickSeries - added QCandlestickSet - added QCandlestickLegendMarker - added model mappers - added Candlestick, CandlestickChartItem, CandlestickData - added SeriesTypeCandlestick to SeriesType enum - added LegendMarkerTypeCandlestick to LegendMarkerType enum - added candlestick chart example - added QML candlestick chart example - added candlestick tester - added autotests - added documentation [ChangeLog][CandlestickChart] Added new chart type: Candlestick Chart. Task-number: QTBUG-50544 Change-Id: I17d18dfa23e0ea209bf51ab1e349585b9cb50a8f Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
* Merge remote-tracking branch 'origin/5.6' into 5.7v5.7.0-beta1Liang Qi2016-04-081-2/+2
|\ | | | | | | | | | | | | | | | | Conflicts: .qmake.conf README src/charts/qchartglobal.h Change-Id: I20497b20947f589f9f73239a09ba6ea013b3597a
| * Fix compilation with GCC 6Marc Mutz2016-03-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | qtcharts/tests/manual/chartwidgettest/mainwidget.cpp:211:74: error: call of overloaded ‘abs(double)’ is ambiguous newColumn.append(abs(sin(3.14159265358979 / 50 * i) * 100)); The file included <cmath>, but used C's math.h abs(), which is integer-only. ^ Change-Id: Iaa7e19f282a460a8c2d79475a14c7372b9740d26 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* | No longer automatically disable QDateTimeAxis on ARM platformsMiikka Heikkinen2016-02-031-1/+1
| | | | | | | | | | | | | | | | | | | | QDateTimeAxis is now only disabled on platforms that define qreal as float. Change-Id: I08d393d328c972d74b27bd218e4cd01e844800c9 Reviewed-by: Tomi Korpipää <tomi.korpipaa@theqtcompany.com> Reviewed-by: Mika Salmela <mika.salmela@theqtcompany.com> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* | Updated licenseMiikka Heikkinen2016-01-13135-1215/+2295
|/ | | | | | Change-Id: I7ad9838039b56b9e3a7fe2c42a2d8ff818f393fb Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Updated license headersTitta Heikkala2015-10-20135-1497/+1902
| | | | | Change-Id: Ic72ee3c9723c2b3f3368c79219b7468f5d95aa84 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Added trivial useOpenGL series test to qmlchartproperties manual testMiikka Heikkinen2015-10-021-7/+20
| | | | | Change-Id: Ic7960c91ab6971d5f9317967333370cd2557af15 Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
* Added a manual test application for OpenGL seriesMiikka Heikkinen2015-10-0110-1/+1509
| | | | | Change-Id: I9e6a1b970a05ce550247fe6023fca11570fcf0f2 Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
* Fix label clipping issues using QOpenGLWidget as ChartView viewportMiikka Heikkinen2015-09-296-14/+11
| | | | | | Task-number: QTRD-3701 Change-Id: I8efc20300d2aa6065918e02190da746463a5d504 Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
* Fixed manual testTitta Heikkala2015-09-251-1/+1
| | | | | | | Fixed compilation error due to wrong include. Change-Id: Ia1ddcd82efef5285410028bf41337b54975ed94c Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Added option to set labels clippingTitta Heikkala2015-09-227-0/+24
| | | | | | | | | | It's now possible to enable and disable the point label clipping. The clipping is enabled by default. Clipping cuts the point labels on the edge of the plot area. Change-Id: Ifaa6017b4c6d55fe030effeec8b336a7fc317adf Task-number: QTRD-3520 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Added grid color property for value axisTitta Heikkala2015-09-155-5/+83
| | | | | | | | | Added possibility to set the color of the grid lines for value axes. Change-Id: I38b634410e7f1cb996d80f5ac1650a1be844ca01 Task-number: QTRD-3319 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Add a method to remove more than one point to QXYSeriesMiikka Heikkinen2015-09-112-0/+20
| | | | | | Task-number: QTRD-3688 Change-Id: Iaea85c5f07740aeaf35ff34a2c5227c5105f2f25 Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
* Added possibility to set duration and easing curve for chart animationTitta Heikkala2015-09-112-2/+26
| | | | | | | | | Changed the animation API so that it's possible to change the duration and easing curve of the chart animation. Change-Id: I2ab3e0664a7f30bc2bb7085daa1d97181edb90ba Task-number: QTRD-3496 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Added support for bar series value label angleMiikka Heikkinen2015-09-101-0/+8
| | | | | | Task-number: QTRD-3249 Change-Id: I98f670f631ec85d58122fab97283802834995b4d Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
* Make category axis label positioning at value work for polar chartsMiikka Heikkinen2015-09-093-49/+116
| | | | | | Task-number: QTRD-3515 Change-Id: Icd38469386c7fc923047533f2a25b726f2f6caa5 Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
* Added minor ticks to value axisTitta Heikkala2015-09-076-534/+635
| | | | | | | | | | Added possibility to set minor tick for value axis. By default the count of minor ticks is zero. The arrow of minor ticks follows the color and pen of the arrows of the major ticks as it's part of axis. Change-Id: I8a422caaeedcd18ee6144e8636e3903d16f0632c Task-number: QTRD-3294 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Added mapToXxx methods to ChartViewTitta Heikkala2015-08-101-0/+18
| | | | | | | | | Added mapToPosition and mapToValue methods to ChartView. These correspond to the ones QChart has. Change-Id: I5d0477d3f704b6f56243b31848d175fd17f24ff6 Task-number: QTRD-3494 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Add possibility to set reverse values to axesTitta Heikkala2015-07-034-12/+22
| | | | | | | | | Added support for reverse axis. This works with line, spline, scatter and area series with cartesian chart. QBarCategoryAxis is not supported, nor different bar series. Change-Id: I60f21372ea9cee7b49918d7d99de24671bdc42c3 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Copyright header changesTitta Heikkala2015-04-23129-385/+385
| | | | | | | Copyright header changes for Qt 5.5. Change-Id: I2b8e9356997de2c87a7436bcefd4d0948d566259 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Fix compilation with namespaced Qt.Christian Kandeler2015-04-018-5/+24
| | | | | Change-Id: I359bbf5c89bd23bb1b6db1aeed8a2a4aa2ca12bf Reviewed-by: Andre Poenitz <andre.poenitz@theqtcompany.com>
* Update license headersTitta Heikkala2014-11-1411-126/+104
| | | | | | | Updated new license headers to files that weren't yet updated. Change-Id: I193f5e46e019b5f82f0a333ee5d883fa193c2b20 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Fix clicked, released and doubleClicked signal pointsTitta Heikkala2014-11-131-4/+5
| | | | | | | | The clicked, released and doubleClicked signals for line, spline and area series return the point where the press was triggered. Change-Id: I075bb213657a7cadabdec3a72fde7cf5f412e982 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Remove deprecated elements from APIs.Miikka Heikkinen2014-11-128-90/+5
| | | | | | | Task-number: QTRD-2098 Change-Id: Ib658c8a51af0b73ded5d6b13c8fa58762f859961 Reviewed-by: Mika Salmela <mika.salmela@theqtcompany.com> Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>
* Updated license headersTitta Heikkala2014-11-12118-1062/+826
| | | | | | | Updated new license headers and added missing ones to qdoc files. Change-Id: I9f2af2a8b44c3ebf19fd494628dfaa8775a47b06 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Add pressed, released and doubleClicked signalsTitta Heikkala2014-11-1213-0/+110
| | | | | | | | | Added pressed, released and doubleClicked signals for all series. The signals are also added to QPieSlice and QBoxPlotSet. Change-Id: If94948be439a3b53ed48c02d0092091e836222a4 Task-number: QTRD-2384 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Moved manual tests to separate directory.Miikka Heikkinen2014-11-11143-0/+14172
This allows publishing autotests. Git export attributes changed accordingly. Change-Id: I6db2eb52dabdb8f12e0bc2a992a873abfa15b1a5 Reviewed-by: Titta Heikkala <titta.heikkala@theqtcompany.com>