summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Qt Charts project file structure changeTitta Heikkala2014-10-14186-3947/+1609
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Charts repository structure is changed to follow the structure of a Qt Add-On module. The task includes following changes: - All macros and definitions named 'commercial' have been renamed. - Compile errors related to QString and qSort usage have been fixed. - Old demos are moved under examples. The QML examples now support only Qt Quick 2.0, the support for Qt Quick 1 is removed. - The QML examples with multiple views are updated so that they are usable also with touch devices. - Unnecessary version checks are removed from examples. - The build stamp has been removed as it was only meant for Charts development purposes and it's no longer needed. Also development build related debug prints are removed as __DATE__ can't be used for all OS thus it doesn't make much sense. - Documentation structure has been updated based on the new module structure. The raw HTML files have been removed. Demos are combined to examples. - Unnecessary .qdocinc files are no longer needed. The content is moved to the corresponding .cpp files. - The Charts widget designer plugin is updated according to the module change. - The test cases updated according to the project structure change. Tests are added also for version 2.0. - cmake modules generation is not needed with Qt 5.4 and Qt Charts so it's disabled. - The new module name and version are updated to the plugin.qmltypes file. Task-number: QTRD-2844, QTRD-3217, QTRD-3218, QTRD-3277, QTRD-3228, QTRD-2526, QTRD-3233, QTRD-3222 Change-Id: Ib7fb26057cde710ffaf6bc780c8bf52a16f45160 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@theqtcompany.com>
* Fix compilation on platforms without QtQuick1Maurice Kalinowski2014-06-162-3/+6
| | | | | | | | | WinRT is one of those, but you might want to configure Qt in that way also on other platforms. Change-Id: I40e5d0b8bc0c347f058d5f30d64ddbf55653f904 Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com> Reviewed-by: Titta Heikkala <titta.heikkala@digia.com>
* Add invokable clear() for QML bar category axisTitta Heikkala2014-05-301-0/+11
| | | | | | | | Changed clear() method to invokable for QBarCategoryAxis. Task-number: QTRD-2631 Change-Id: I0aa00a44ae5c6bd5b59ecf630d938b5cc484f62e Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Fix assert failure with percent bar seriesTitta Heikkala2014-05-272-0/+40
| | | | | | | | Category groups with zero values are not drawn. Task-number: QTRD-3087 Change-Id: Ie6f85e48398e751213b11d88c0c6a8de2ce8247a Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Added possibility to show series valueTitta Heikkala2014-05-2738-20/+870
| | | | | | | | | | | For line, spline and scatter series it is possible to show the point values above the point. The format, color and the font of the label can be set. For bar series the format and position of the value label can be set. Task-number: QTRD-2808 Change-Id: I0488d98c4d9060eaa8331e5b3c97dc83d86aeb0c Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Update copyright yearTitta Heikkala2014-05-13229-229/+229
| | | | | | Task-number: QTRD-3083 Change-Id: Ide516e5299d2363953d46bf9dc5e2f9ec277154e Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Fix Creator generated filesTitta Heikkala2014-05-122-6/+23
| | | | | | | | Updated generated files with Qt Creator so that it no longer notifies about it. Change-Id: I06f83d5b2e3b517c0a3c8efdfada3c55a64322c6 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Add count property for QBoxPlotSeriesTitta Heikkala2014-05-052-4/+4
| | | | | | | | Changed set count to property for QBoxPlotSeries. Task-number: QTRD-2504 Change-Id: Id65e0b2b6e43b3a6330fbb21c66e1cfa4d0db3d2 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Add possibility to set brush image via QML APITitta Heikkala2014-05-0220-12/+1278
| | | | | | | | | User can set a brush image for AreaSeries, BarSet, BoxPlotSeries, BoxSet, PieSlice and ScatterSeries by specifying 'brushFilename'. Task-number: QTRD-2603 Change-Id: Ie4b75cec1f64da513b1b85749c28984cb7f88e38 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Add possibility to set markers in legend in reverse orderTitta Heikkala2014-04-046-0/+21
| | | | | | | | | Added new property for legend which defines whether the markers in legend are shown in reverse order or not. Task-number: QTRD-2512 Change-Id: Ia6e6551be74a183c9f544d7cb9fff679150f4d7e Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Fix android build issuesMiikka Heikkinen2013-10-312-2/+6
| | | | | Change-Id: I2472408330307e1bccede1b842eae365e850f848 Reviewed-by: Iikka Eklund <iikka.eklund@digia.com>
* Fix Charts QML api auto testTitta Heikkala2013-10-2430-111/+1398
| | | | | | | | | Charts QML api auto tests, qml-qtquicktest, has been fixed so that the tests are runnable with Qt5 / QtQuick 2.0. Task-number: QTRD-1692 Change-Id: I8e1e52781570cde413fab7f511cce17ab91e20d3 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Fix crash with boxplottertester brushTitta Heikkala2013-10-161-1/+4
| | | | | | | | The test sets the brush for the second set in the first series. It is checked that the set exists before setting the brush for it. Change-Id: Id677ab781953bf7cc789f316d92c137873d4f624 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Add the new Qt template to demos and testsTitta Heikkala2013-10-113-1/+11
| | | | | | | | | The new Qt template is added to demos and test applications that provide the selection for theme. Task-number: QTRD-1924 Change-Id: I847621c98c657e89678bc759ab9e8f6c290debd7 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Fix crash with boxplotttesterTitta Heikkala2013-10-111-1/+4
| | | | | | | | The test application clears the second set in the first series. It is checked that the set exists before clearing it. Change-Id: I6fc7aa812a359b2227930852c02e9b6029a7303e Reviewed-by: Mika Salmela <mika.salmela@digia.com>
* Add new Qt theme templateTitta Heikkala2013-10-042-0/+5
| | | | | | | | | Added new theme template ChartThemeQt. The colors are the ones used in official Qt documentation. Task-number: QTRD-1924 Change-Id: I2bb2d33b0198cad6275244d2e815908a2db033a3 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Add hovered signal with index for bar chartsTitta Heikkala2013-08-1918-24/+1690
| | | | | | | | | | | Added hovered signal for bar charts including the hovered bar inside the set. The hovered bar is identified by the index. Documentation and tests are updated accordingly. Task-number: QTRD-2161 Change-Id: I96c9d86975441274a697dec794b22e906fb44243 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Fix boxplottertesterTitta Heikkala2013-08-191-1/+1
| | | | | | | | | | OpenGL was unnecessarily added to the project. This caused the build to fail for VxWorks. The 'opengl' is removed from the project. Task-number: QTRD-2159 Change-Id: Ic330f7e65661affd024c5204ae425812aea42c41 Reviewed-by: Karim Pinter <karim.pinter@digia.com> Reviewed-by: Mika Salmela <mika.salmela@digia.com>
* Property to control box widthMika Salmela2013-06-172-0/+22
| | | | | | | | | Also fix bounding rect to get rid of some pen width related drawing artifacts. Change-Id: Ib498545cecd497d845031a3ccba572a9cba8e91d Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com> Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
* Qt Commercial -> Qt EnterpriseMiikka Heikkinen2013-06-13209-627/+627
| | | | | | | Also updated licenses. Change-Id: Ie14327305207e14879c1f1223219fcdfa1669dc0 Reviewed-by: Mika Salmela <mika.salmela@digia.com>
* Selectable outlines for boxMika Salmela2013-06-122-1/+16
| | | | | Change-Id: Ic31fa26f914baaa6c26f52c73ca4328ec7523581 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Fix QLegend test case.Heikkinen Miikka2013-06-111-6/+4
| | | | | | | The test window was too low to encompass all legend markers. Change-Id: I5a9d325494f51fc996c233f3fafd524cbb52b560 Reviewed-by: Mika Salmela <mika.salmela@digia.com>
* Pentool to boxplot testerMika Salmela2013-06-102-8/+10
| | | | | Change-Id: I86ba4914e3bb4c42d071b4939a1eb465c1fbc075 Reviewed-by: Mika Salmela <mika.salmela@digia.com>
* Added pentool to boxplot testerMika Salmela2013-06-104-3/+238
| | | | | Change-Id: Ie6964a681970fcd2282dabbc98bec26827778e98 Reviewed-by: Mika Salmela <mika.salmela@digia.com>
* Refactor boxplottestMiikka Heikkinen2013-06-102-76/+76
| | | | | Change-Id: I3186eacba494ff1cc14cbfc2b4c9eeb5144a2368 Reviewed-by: Mika Salmela <mika.salmela@digia.com>
* Removing unused connections and slotsMika Salmela2013-06-071-1/+1
| | | | | | | Due copy&paste from barseries boxplot contained unused slots. Change-Id: Ic584b778a62651e52bbab43c73d32160a6dbfd00 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Changed BoxPlot to use domain for calculating geometry points.Mika Salmela2013-06-051-12/+15
| | | | | Change-Id: I14e5db7a4be7afd406e36eac758d8341d707f37f Reviewed-by: Mika Salmela <mika.salmela@digia.com>
* Fix mingw build errorsMiikka Heikkinen2013-06-041-0/+1
| | | | | Change-Id: I1c7f3cf9da47261729f33b6a10c624ed329c2432 Reviewed-by: Mika Salmela <mika.salmela@digia.com>
* Added API to set chart background roundnessMiikka Heikkinen2013-06-045-0/+19
| | | | | | | Task-number: QTRD-1631 Change-Id: I8ac70b5ed157211b90aa1c9ef3d168bca78fb27c Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
* A new box-and-whiskers series type added to charts.Mika Salmela2013-06-037-1/+747
| | | | | Change-Id: Iab7a05c44026db9925fa0d68afd2b533b3ea2f91 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Added QChart::zoomReset() and QChart::isZoomed()Miikka Heikkinen2013-06-031-0/+72
| | | | | | | | | | | | | | QChart::zoomReset() will restore all series domains to whatever they were before first zoom operation was called. QChart::isZoomed() indicates if any zoom operations have been called since chart creation or previous zoom reset. Also fixed related QChartView right mouse button release docs. Task-number: QTRD-1944 Change-Id: I5eec2352a2aa6d1b8ed7e6c97653bb327fb92cd3 Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
* Added HTML support for various text itemsMiikka Heikkinen2013-05-301-1/+1
| | | | | | | | | | | | | | | - HTML tags can now be used in chart titles, legends, and labels - '\n' does no longer cause line break in multi-line text items. HTML tag <br/> can be used for line break now. - Setting pen for axis titles and labels is deprecated - When setting brush for titles and labels, only the color is relevant - Logic for identifying label format specifiers was improved, so adding additional information to labels via label format string is now more viable. Task-number: QTRD-1912 Change-Id: I8fa56df56fd656e2a3e427eff4abf3481435eec7 Reviewed-by: Mika Salmela <mika.salmela@digia.com>
* Update qmlapplicationviewer filesHeikkinen Miikka2013-05-234-6/+6
| | | | | | | Otherwise the new creator will prompt to update them. Change-Id: I8551532fbe58746aea4cbe8a2ccaf379c624e4a4 Reviewed-by: Mika Salmela <mika.salmela@digia.com>
* Fix autotests build for androidHeikkinen Miikka2013-05-221-0/+7
| | | | | Change-Id: I53f7c5d3c534338859b556561d53ca4fa917622e Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
* Fix qml application deployment for androidHeikkinen Miikka2013-05-225-3/+48
| | | | | Change-Id: I5a693f3ca7d6110505f8e6d276f53825e1a5961b Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
* Fix android build issuesHeikkinen Miikka2013-05-211-7/+7
| | | | | Change-Id: I87ffe334694aa8beac6ec9b4ce310790bee78fd0 Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
* Return empty brush/pen/font via API rather than the weird default oneMiikka Heikkinen2013-05-171-3/+3
| | | | | | | | | | | | | | | | | Previously a non-initialized QPen()/QBrush()/QFont() was returned if axis/series hadn't been added to a chart yet and therefore had not been themed yet. To keep API somewhat consistent with old behavior, return non-initialized QPen()/QBrush()/QFont() instead of the weird default one in these cases. The new behavior is slightly different in that it is no longer possible to restore themed behavior by setting pen/brush/font to non-initialized one, but since there is no way to differentiate e.g. legitimate Qt::black pen from non-initialized pen, we can no longer support this behavior. Change-Id: I99f3d8853b329b5345e3073c040d8bfa8b9b75b4 Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
* Make creator stop whining about changed generated filesMiikka Heikkinen2013-05-156-3/+3
| | | | | Change-Id: Iff1a13f6686b20d46ed6d8125a3bdd9e302d0806 Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
* Fix build issues with multi-core builds in qml/quick demosMiikka Heikkinen2013-05-1512-3/+587
| | | | | | | | Qmake couldn't handle shared sources so make each app have their own copy of application viewer sources again. Change-Id: I6ee1948c91b5cc41bdd69237b106d3bfe935226c Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
* Fix qml autotest after qtquick2 support was addedMiikka Heikkinen2013-05-074-1/+153
| | | | | | | Also added similar quick2 autotest. Change-Id: Ia2895a63d27c48dd0d1408f8be5410b644a42329 Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
* Add API to specify plot area background.Miikka Heikkinen2013-05-078-5/+204
| | | | | | | Task-number: http://jira.sc.local/browse/QTRD-1886 Change-Id: Ica9bd72482fdca14a81574087ba0ec4614169cd2 Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
* Implement index based removing/replacing points in seriesMiikka Heikkinen2013-05-025-8/+31
| | | | | | | Task-number: QTRD-1952 Change-Id: I50d374a07506814007d5bd9aeb8921165ea500fa Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
* Fix mouse events for QtQuick2Miikka Heikkinen2013-05-023-0/+5
| | | | | Change-Id: Ibb6b80765c6433a47670046ca72e156c697b1f97 Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
* Add qml files to OTHER_FILES in qml examples, demos, and testsMiikka Heikkinen2013-04-242-0/+2
| | | | | | | This way the qml files show up in creator. Change-Id: If2ca5cd45b3af0489208ef865474815547d89b1d Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
* Fix crash when adding/removing points during animationMiikka Heikkinen2013-04-241-2/+65
| | | | | | | | | | | | Adding/removing points during the animation of the previous add/remove operation resulted in a mismatch between visible point count and the actual point count, leading to crashes in code that assumed both to be the same. Added necessary safeguards and improved autotests to detect these cases. Task-number: QTRD-1984 Change-Id: I544d10a69e760a40d4c90a4f02de61d4d1bb974f Reviewed-by: Tomi Korpipää <tomi.korpipaa@digia.com>
* Generate charts plugin for QtQuick2 as well as QtQuick1Miikka Heikkinen2013-04-2339-474/+2542
| | | | | | | | Added quick2 versions of a couple of demos, too. Task-number: QTRD-1922 Change-Id: Ie3e2c1c40c38e06fc6d3afe27289eccc2f997f67 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Add Polar chart supportMiikka Heikkinen2013-04-1717-65/+2548
| | | | | | | | | | This commit also heavily refactors things as polar chart needs separate implementation of various classes that previously only needed one, such as ChartAxis and ChartLayout. Task-number: QTRD-1757 Change-Id: I3d3db23920314987ceef3ae92879960b833b7136 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@digia.com>
* Remove cryptic/obsolete TODOsMiikka Heikkinen2013-03-153-6/+0
|
* More copyright year changesMiikka Heikkinen2013-03-05168-168/+168
|
* Fix hoverSignal tests in linuxHeikkinen Miikka2013-02-122-2/+4
| | | | | | The final hoverevent when leaving the piechart seems to take a few milliseconds to appear in some environments. Added small wait before checking the signal counts.