aboutsummaryrefslogtreecommitdiffstats
path: root/softwarecontext/rectanglenode.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Correct painting of RectangleNodeAndy Nichols2014-09-011-13/+139
| | | | | | | | | | | | The previous behavior was very wrong compared to how QtQuick normally paints Rectangle elements. The border.width property does not effect the geometry of the Rectangle, where as QPainter::drawRect draws a border 0.5 the border.width around the edge of the rectangle. So now there is special logic to draw the each case correctly using fillRect as much as possible. Change-Id: I4ea2be2226ff3b1a11dc5000522df503c6f43227 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Revert "Save and restore changed QPainter properties"Louai Al-Khanji2014-08-181-6/+0
| | | | | | | | | The above commit was accidentally pushed. This reverts commit 4e55b36b29e2114c7edfd53b62f04a6029bab6d6 Change-Id: I48bf983475e98365b62302ff0c37234a73774b79 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Save and restore changed QPainter propertiesLouai Al-Khanji2014-08-181-0/+6
| | | | | Change-Id: I67c604aa43d03207fd18fb41f54b445bd6bb34d9 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Fix add-on nameSimon Hausmann2014-08-121-1/+1
| | | | | Change-Id: I7df5c64a5035bcec317b7a837d4c7f499f21ab53 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Revert "Add a simple rectangle node"Simon Hausmann2014-08-121-28/+0
| | | | | | | | | This reverts commit 7d516abb39081c7ce58bb78a644f5bb5ff88f98a. Gunnar preferred routing the text cursor rectangles through the regular QSGRectangleNode. Change-Id: I40dc44451a10c9ccfe436974c21995a2b3bf86c2 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Add commercial license headersSimon Hausmann2014-08-121-0/+19
| | | | | Change-Id: Iffa31b2d644ebc7e13e710fff4aee28e2a3f67c7 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* Use fillRect when appropriateAndy Nichols2014-08-121-0/+2
| | | | | | | | | This is the most common case and it is possible to use the accelerated blitter path, where as drawRect requires extra effort for the border and thus always uses the raster path. Change-Id: Ic4600b7247a86db5f79268c5ad5b02c331f51058 Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Add a simple rectangle nodeLars Knoll2014-08-081-0/+28
| | | | | | | | This gets text cursor and selections working properly together with the corresponding change in qtdeclarative. Change-Id: I53acc39c959f9cde875ef5e8d1bcd4d660269d5e Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
* Fully implement RectangleNodeLars Knoll2014-08-081-5/+27
| | | | | Change-Id: If03d1fbcac76035628254033121a822ce481fa38 Reviewed-by: Lars Knoll <lars.knoll@digia.com>
* First implementation of images and rectanglesSimon Hausmann2014-08-081-0/+50
Change-Id: Ia905d6dfe3d9922ef820085fedc5195be8ace1da Reviewed-by: Lars Knoll <lars.knoll@digia.com>