aboutsummaryrefslogtreecommitdiffstats
path: root/examples/declarative/canvas
Commit message (Collapse)AuthorAgeFilesLines
* Remove non-standard canvas filter/mirror functionsCharles Yin2012-02-131-83/+0
| | | | | | | | | They are not standard context 2d APIs, and now the same effects can be implemented by the ShaderEffect/QtGraphicEffects as well, so remove them from canvas 2d to reduce the duplicated features. Change-Id: If77ea6794e839a59927a313702aeea2282384844 Reviewed-by: Michael Brasser <michael.brasser@nokia.com>
* Use only standard API in examples.Justin McPherson2012-02-109-16/+25
| | | | | Change-Id: I62a864de35c5b595ffda4397edb16342f54a86ce Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
* Refactor Canvas rendering paths.Justin McPherson2012-02-1010-16/+16
| | | | | | | Refactor Canvas rendering paths to enable different drawing contexts. Change-Id: If0e00a14baa673fca6b999a787b4e89885bb1e51 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
* UI improvement for TwitterFriends exampleDamian Jansen2012-02-091-8/+22
| | | | | | | | Remove need to erase pre-existing text in TextInput More likeable input field Change-Id: I253c0a871079ebedecb96a4b2e27998e82cb10c2 Reviewed-by: Yunqiao Yin <charles.yin@nokia.com>
* Remove "All rights reserved" line from license headers.Jason McDonald2012-01-3020-20/+20
| | | | | | | | | | As in the past, to avoid rewriting various autotests that contain line-number information, an extra blank line has been inserted at the end of the license text to ensure that this commit does not change the total number of lines in the license header. Change-Id: If39bd256b0fa85eba17ea30f8ab87ea27d758908 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Update obsolete contact address.Jason McDonald2012-01-2320-20/+20
| | | | | | | | Replace Nokia contact email address with Qt Project website. Change-Id: I6a730abc0c396fb545a48b2d6938abedac2e3f1c Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com> Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* Update copyright year in Nokia copyright headers.Jason McDonald2012-01-171-1/+1
| | | | | | | | Update copyright headers from before 2011, and a couple of new ones that were merged after the previous change to copyright headers. Change-Id: Ia76e08e2734afa4ef3f1207dbcda5ff3bc81b366 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Update copyright year in license headers.Jason McDonald2012-01-0519-19/+19
| | | | | Change-Id: I0a8d99909cac867dce72da70b1bbcb649989a51b Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
* Fix build error for canvas stockchart example.Charles Yin2011-10-211-1/+1
| | | | | | Change-Id: I82115738ada4fe6a77023a56e962c71284ebc91b Reviewed-by: Michael Brasser <michael.brasser@nokia.com> Reviewed-by: Charles Yin <charles.yin@nokia.com>
* tests for canvas and a few bug fixesCharles Yin2011-09-307-7/+7
| | | | | | Change-Id: Icbbc7f2a0fe3b908963ce18afef51e25ea0170a0 Reviewed-on: http://codereview.qt-project.org/5805 Reviewed-by: Charles Yin <charles.yin@nokia.com>
* rename threadRendering to renderInThreadCharles Yin2011-09-1611-23/+17
| | | | | | Change-Id: I21d2492288adc84d3ef99633752e78a3ea232a4a Reviewed-on: http://codereview.qt-project.org/5042 Reviewed-by: Charles Yin <charles.yin@nokia.com>
* fix broken canvas blur after merging refactor branchCharles Yin2011-09-161-2/+2
| | | | | | | Change-Id: If145f1d02566f839abeb50df167db2b237499290 Reviewed-on: http://codereview.qt-project.org/4857 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Charles Yin <charles.yin@nokia.com>
* Fix missing/outdated license headers.Jason McDonald2011-09-1610-2/+402
| | | | | | Change-Id: Ib5f244a61cb65db829ee83ec9e4d5e4189319a9f Reviewed-on: http://codereview.qt-project.org/4936 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* canvas item refactorsCharles Yin2011-09-1238-65/+1962
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1.Supports tiled canvas with canvasSize, tileSize and canvasWindow 2.Supports different rendering targets: Canvas.Image and Canvas.FrameBufferObject by renderTarget property 3.Supports thread rendering when possible by threadRendering property. 4.Refactors QSGContext2D code, move some logic to QSGContext2DCommandBuffer,QSGContext2DTexture,QSGContext2DTile, etc 5.Updates/adds some canvas examples 6.Some improvements for context2d API 6.1 drawImage() now loads image asynchoronously and draw images automatically when they are ready 6.2 adds fillRule supports 6.3 add svg path supports 6.4 Pixel operations (getImageData/putImageData/createImageData) now have better performance by using V8 indexed array accessors 6.5 Uses QTransform instead of QMatrix 6.6 Gradients/patterns now are V8 values, not QObjects 6.7 Supports measureText and TextMetrics interface 6.8 Gives not support warnings for unimplemented functions (drawFocusRing,setCaretSelectionRect,caretBlinkRate) 6.9 Better error handling, throw standard DOM exceptions according to the HTML5 context2d spec. 6.10 Adds shear, resetTransform to matrix operations 6.11 Adds roundedRect, ellipse, text to path operations 6.12 Adds new features to CanvasImageData interface 1) adds mirror() function 2) adds filter() function, include the following filters: Threshold GrayScale Brightness Invert Blur Blend Opaque Convolute 7. Adds documentations Change-Id: Id19224260d6a3fdc589d1f9681c34a88a7e7b3e5 Reviewed-on: http://codereview.qt-project.org/3621 Reviewed-by: Charles Yin <charles.yin@nokia.com>
* Fix missing and outdated license headers.Jason McDonald2011-09-094-87/+124
| | | | | | Change-Id: I940ced2e84a86daabc5158d348b05b7532cb1c22 Reviewed-on: http://codereview.qt-project.org/4314 Reviewed-by: Alan Alpert <alan.alpert@nokia.com>
* disable the canvas svgpath example temporarily.Charles Yin2011-08-242-848/+0
| | | | | | Change-Id: I368acd65e9d352ecc04f4f7aaa3efc43d4530530 Reviewed-on: http://codereview.qt.nokia.com/3440 Reviewed-by: Charles Yin <charles.yin@nokia.com>
* remove motionchart demo (uncompleted)Charles Yin2011-07-291-140/+0
| | | | | | | Change-Id: I4e6b068ca9ceb0b7f76a6548d1b7a8789bc4bf39 Reviewed-on: http://codereview.qt.nokia.com/2237 Reviewed-by: Charles Yin <charles.yin@nokia.com> Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
* polish canvas stock chart exampleCharles Yin2011-07-2722-61/+601
| | | | | | Change-Id: Ie79859af8572c3c79185d98c54c2aae35190d257 Reviewed-on: http://codereview.qt.nokia.com/1908 Reviewed-by: Charles Yin <charles.yin@nokia.com>
* more on canvas stock chart example.Charles Yin2011-07-207-71/+732
| | | | | | | Change-Id: I7e92414d397b8a0bfdd514c9045677cd00422263 Reviewed-on: http://codereview.qt.nokia.com/1627 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Charles Yin <charles.yin@nokia.com>
* Add stock chart example for canvas itemCharles Yin2011-07-126-0/+560
| | | | | | Change-Id: I72aacfcb72b90d4d18f95cef3038a169c991a336 Reviewed-on: http://codereview.qt.nokia.com/1480 Reviewed-by: Charles Yin <charles.yin@nokia.com>
* Rewrite the canvas item's paint logic.Charles Yin2011-07-122-20/+74
| | | | | | | | | | | | | | 1. Only allow the context API calls inside onPaint() slot function, makes the context2d handle invalid when out of scope. 2. requestPaint() method supports region parameter 3. Emit paint() signal in updatePolish() function to allow threaded scene graph rendering work properly with context2d api 4. Allow request painting mutiple dirty regions between 2 frames. 5. Add svgpath for context2d Change-Id: I5ec48f7c0eb6820d5c9c16a8d0dcc0aae8d0fd2f Reviewed-on: http://codereview.qt.nokia.com/1465 Reviewed-by: Charles Yin <charles.yin@nokia.com>
* update canvas exampleCharles Yin2011-07-012-2/+1
| | | | | | | Change-Id: I8a797b85f88370c6ddfe64d40a6888aba06998d7 Reviewed-on: http://codereview.qt.nokia.com/693 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Sergio Ahumada <sergio.ahumada@nokia.com>
* update canvas exampleCharles Yin2011-06-242-22/+33
| | | | Change-Id: I901532eafabc0344f3978c0093ee56ed230c74b0
* add svgpath example for canvas context2dCharles Yin2011-06-232-0/+784
| | | | Change-Id: Ia54b5fd842d13c15c7914d1a1e6b2b2d5718bf81
* show initial chart in motion chart exampleCharles Yin2011-05-181-2/+7
| | | | Change-Id: I39297ced1c532f633a7c9c6c64c0818bbc852084
* fix motion chart example bugCharles Yin2011-05-181-15/+68
| | | | Change-Id: I0d00d224d815210c8ef45f2289e9ec4d0adea6b5
* add motion chart canvas exampleCharles Yin2011-05-181-0/+82
Change-Id: Iccce2c4fc2bdeb4289093fa9675440eff589ae41