<feed xmlns='http://www.w3.org/2005/Atom'>
<title>qt/qtdeclarative.git/tests/auto/quick/qquickcanvasitem/data/CanvasTestCase.qml, branch dev</title>
<subtitle>Qt Declarative (Quick 2)
</subtitle>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/'/>
<entry>
<title>Make tst_qquickcanvasitem significant again; fix image size rounding</title>
<updated>2020-03-05T04:52:14+00:00</updated>
<author>
<name>Shawn Rutledge</name>
<email>shawn.rutledge@qt.io</email>
</author>
<published>2019-09-25T09:47:47+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=2bb382f9c276a1dc1258148c156222be3576aff5'/>
<id>2bb382f9c276a1dc1258148c156222be3576aff5</id>
<content type='text'>
- the test items must be visible, so that waitForRendering() works
- arcTo::test_paint tried to render an out-of-bounds arc, which
  resulted in rendering nothing.  Now renders within the 100x100 canvas.
- painted() is not emitted the first time the Canvas is rendered.
- Canvas.save() saves relative to the directory from which the test is
  run, while Canvas.loadImage() loads relative to the test data
  directory in this autotest (other tests are loading red.png for
  example).  So we need to use absolute paths to test loading and saving
  in the directory where the executable is.
- canvas.getContext('2d').getImageData(8.5, 8.5, 8.5, 8.5)
  now triggers different rounding behavior in QRectF::toRect(),
  after qtbase 88e56d0932a3615231adf40d5ae033e742d72c33:
  it becomes QRect(9,9 8x8).  The assert in qt_create_image_data()
  needs to accommodate that.
- Fixed another pedantic warning in qt_create_image_data a few
  lines above: if it creates the image itself, it needs to round
  the qreal width and height values.

This reverts commit a23ee5c0de0d91859e1e76e64073861347dd9861 and
amends 424cfef3cc3c140df51905713fa3849562bc494d and
d142b2d212ea09a7919a0a2761ee9c04d5c9bda8.

Task-number: QTBUG-41043
Change-Id: I825c2c5a2bbc8d5324c3ba41a681aa68bc25a159
Reviewed-by: Shawn Rutledge &lt;shawn.rutledge@qt.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
- the test items must be visible, so that waitForRendering() works
- arcTo::test_paint tried to render an out-of-bounds arc, which
  resulted in rendering nothing.  Now renders within the 100x100 canvas.
- painted() is not emitted the first time the Canvas is rendered.
- Canvas.save() saves relative to the directory from which the test is
  run, while Canvas.loadImage() loads relative to the test data
  directory in this autotest (other tests are loading red.png for
  example).  So we need to use absolute paths to test loading and saving
  in the directory where the executable is.
- canvas.getContext('2d').getImageData(8.5, 8.5, 8.5, 8.5)
  now triggers different rounding behavior in QRectF::toRect(),
  after qtbase 88e56d0932a3615231adf40d5ae033e742d72c33:
  it becomes QRect(9,9 8x8).  The assert in qt_create_image_data()
  needs to accommodate that.
- Fixed another pedantic warning in qt_create_image_data a few
  lines above: if it creates the image itself, it needs to round
  the qreal width and height values.

This reverts commit a23ee5c0de0d91859e1e76e64073861347dd9861 and
amends 424cfef3cc3c140df51905713fa3849562bc494d and
d142b2d212ea09a7919a0a2761ee9c04d5c9bda8.

Task-number: QTBUG-41043
Change-Id: I825c2c5a2bbc8d5324c3ba41a681aa68bc25a159
Reviewed-by: Shawn Rutledge &lt;shawn.rutledge@qt.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Canvas test: make sure canvas is ready</title>
<updated>2016-07-04T15:33:47+00:00</updated>
<author>
<name>Frederik Gladhorn</name>
<email>frederik.gladhorn@theqtcompany.com</email>
</author>
<published>2016-07-03T12:10:15+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=827af028904c8f0c370ea590d565e9a31e168088'/>
<id>827af028904c8f0c370ea590d565e9a31e168088</id>
<content type='text'>
before:
Totals: 80 passed, 653 failed, 0 skipped, 0 blacklisted, 35852ms
after:
Totals: 729 passed, 4 failed, 0 skipped, 0 blacklisted, 29599ms

The last four failures are due to high dpi issues.

Change-Id: Ie937091558395572dc281ee5a5b90848ea9d2081
Reviewed-by: Shawn Rutledge &lt;shawn.rutledge@qt.io&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
before:
Totals: 80 passed, 653 failed, 0 skipped, 0 blacklisted, 35852ms
after:
Totals: 729 passed, 4 failed, 0 skipped, 0 blacklisted, 29599ms

The last four failures are due to high dpi issues.

Change-Id: Ie937091558395572dc281ee5a5b90848ea9d2081
Reviewed-by: Shawn Rutledge &lt;shawn.rutledge@qt.io&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Canvas: don't crash when getContext("2d") is called on destruction.</title>
<updated>2015-01-26T16:28:37+00:00</updated>
<author>
<name>Mitch Curtis</name>
<email>mitch.curtis@theqtcompany.com</email>
</author>
<published>2015-01-26T14:53:15+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=93affd9ff660456bde2d380788ea8ebfabb0f1c3'/>
<id>93affd9ff660456bde2d380788ea8ebfabb0f1c3</id>
<content type='text'>
We'd assume that a Window existed when that's not always the case.
For example:

import QtQuick 2.4
import QtQuick.Window 2.2
Window {
    Loader {
        sourceComponent: Canvas {
            Component.onDestruction: getContext("2d")
        }
        Component.onCompleted: active = false
    }
}

Change-Id: I5f30876e21ced5658adfa3bac494fd4196e0a7e3
Task-number: QTBUG-42222
Reviewed-by: Ulf Hermann &lt;ulf.hermann@theqtcompany.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We'd assume that a Window existed when that's not always the case.
For example:

import QtQuick 2.4
import QtQuick.Window 2.2
Window {
    Loader {
        sourceComponent: Canvas {
            Component.onDestruction: getContext("2d")
        }
        Component.onCompleted: active = false
    }
}

Change-Id: I5f30876e21ced5658adfa3bac494fd4196e0a7e3
Task-number: QTBUG-42222
Reviewed-by: Ulf Hermann &lt;ulf.hermann@theqtcompany.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>qttest: make findChild available only for QtTest 1.1</title>
<updated>2014-12-05T04:50:52+00:00</updated>
<author>
<name>Fawzi Mohamed</name>
<email>fawzi.mohamed@theqtcompany.com</email>
</author>
<published>2014-12-04T17:00:40+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=6601789fd75dfe1abe294e45b97b5433a7f52465'/>
<id>6601789fd75dfe1abe294e45b97b5433a7f52465</id>
<content type='text'>
Change-Id: I4ceb1a969bd4296b82f899088b02b5e8cf100bcd
Reviewed-by: Simon Hausmann &lt;simon.hausmann@digia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: I4ceb1a969bd4296b82f899088b02b5e8cf100bcd
Reviewed-by: Simon Hausmann &lt;simon.hausmann@digia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Run autotests for Canvas.renderTarget == FramebufferObject also.</title>
<updated>2014-08-02T08:36:21+00:00</updated>
<author>
<name>Gunnar Sletta</name>
<email>gunnar.sletta@jollamobile.com</email>
</author>
<published>2014-08-01T09:25:55+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=3f5141e5b7227630ca89329a92b6ebddbcb1b7a5'/>
<id>3f5141e5b7227630ca89329a92b6ebddbcb1b7a5</id>
<content type='text'>
Change-Id: Id1729966b3b2b75a3bd4ad387b3d7914266fb3a5
Reviewed-by: Laszlo Agocs &lt;laszlo.agocs@digia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Change-Id: Id1729966b3b2b75a3bd4ad387b3d7914266fb3a5
Reviewed-by: Laszlo Agocs &lt;laszlo.agocs@digia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Canvas: do not emit paint when resized but hidden</title>
<updated>2014-03-15T23:53:31+00:00</updated>
<author>
<name>J-P Nurmi</name>
<email>jpnurmi@digia.com</email>
</author>
<published>2014-03-14T12:04:42+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=4ef1032a4e5b0e612fb2d440fb3ef82fd5af3c5a'/>
<id>4ef1032a4e5b0e612fb2d440fb3ef82fd5af3c5a</id>
<content type='text'>
It turns out to be a bad idea (as in, breaks the enterprise controls)
to block paint() altogether when hidden. The original bug report
QTBUG-31830 only complained about paint() being emitted upon resize
while _hidden_, so this change solves exactly that. User is still
free to call requestPaint() even when hidden, and Canvas now doesn't
recklessly ignore the request.

Task-number: QTBUG-31830
Change-Id: Icd82188f65406b3ef6ae3b19b5984944576886ff
Reviewed-by: Jens Bache-Wiig &lt;jens.bache-wiig@digia.com&gt;
Reviewed-by: Mitch Curtis &lt;mitch.curtis@digia.com&gt;
Reviewed-by: Gunnar Sletta &lt;gunnar.sletta@jollamobile.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It turns out to be a bad idea (as in, breaks the enterprise controls)
to block paint() altogether when hidden. The original bug report
QTBUG-31830 only complained about paint() being emitted upon resize
while _hidden_, so this change solves exactly that. User is still
free to call requestPaint() even when hidden, and Canvas now doesn't
recklessly ignore the request.

Task-number: QTBUG-31830
Change-Id: Icd82188f65406b3ef6ae3b19b5984944576886ff
Reviewed-by: Jens Bache-Wiig &lt;jens.bache-wiig@digia.com&gt;
Reviewed-by: Mitch Curtis &lt;mitch.curtis@digia.com&gt;
Reviewed-by: Gunnar Sletta &lt;gunnar.sletta@jollamobile.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Canvas: do not emit paint signal when invisible</title>
<updated>2014-02-27T23:02:44+00:00</updated>
<author>
<name>J-P Nurmi</name>
<email>jpnurmi@digia.com</email>
</author>
<published>2014-02-27T14:13:33+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=4693102d94e1942c4d72ac2b148cb04edb4b2af5'/>
<id>4693102d94e1942c4d72ac2b148cb04edb4b2af5</id>
<content type='text'>
Task-number: QTBUG-31830
Change-Id: I23c6fc822547120f14c2d9a09f01a8f985745e2a
Reviewed-by: Gunnar Sletta &lt;gunnar.sletta@jollamobile.com&gt;
Reviewed-by: Jens Bache-Wiig &lt;jens.bache-wiig@digia.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Task-number: QTBUG-31830
Change-Id: I23c6fc822547120f14c2d9a09f01a8f985745e2a
Reviewed-by: Gunnar Sletta &lt;gunnar.sletta@jollamobile.com&gt;
Reviewed-by: Jens Bache-Wiig &lt;jens.bache-wiig@digia.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Revert "Fix item polishing"</title>
<updated>2014-02-27T23:02:38+00:00</updated>
<author>
<name>J-P Nurmi</name>
<email>jpnurmi@digia.com</email>
</author>
<published>2014-02-27T13:54:09+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=24d5fe8113ed149b98c0718aa3b27d3b013577cc'/>
<id>24d5fe8113ed149b98c0718aa3b27d3b013577cc</id>
<content type='text'>
This caused items like positioners and itemviews to not
relayout or update as appropriate when items were hidden,
and therefore caused problems all over in eg. controls.

This reverts commits
- 43f983350a548b1b663ea07a0e87e4cc58834214
- 01e609e9fa0ca1317e0f4eff4802a79584450357
- 439f31f128e70ecae16544ee7041695c60e0b2d6

Task-number: QTBUG-36954
Task-number: QTBUG-36934
Task-number: QTBUG-31830
Change-Id: If04cdce51206568c360a45e24efc0bd04764750b
Reviewed-by: Gunnar Sletta &lt;gunnar.sletta@jollamobile.com&gt;
Reviewed-by: Fabian Bumberger &lt;fbumberger@rim.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This caused items like positioners and itemviews to not
relayout or update as appropriate when items were hidden,
and therefore caused problems all over in eg. controls.

This reverts commits
- 43f983350a548b1b663ea07a0e87e4cc58834214
- 01e609e9fa0ca1317e0f4eff4802a79584450357
- 439f31f128e70ecae16544ee7041695c60e0b2d6

Task-number: QTBUG-36954
Task-number: QTBUG-36934
Task-number: QTBUG-31830
Change-Id: If04cdce51206568c360a45e24efc0bd04764750b
Reviewed-by: Gunnar Sletta &lt;gunnar.sletta@jollamobile.com&gt;
Reviewed-by: Fabian Bumberger &lt;fbumberger@rim.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix canvas tests after commit 439f31f128e70ecae16544ee7041695c60e0b2d6</title>
<updated>2014-02-04T13:45:33+00:00</updated>
<author>
<name>Simon Hausmann</name>
<email>simon.hausmann@digia.com</email>
</author>
<published>2014-02-04T10:37:36+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=48144d3b29a1204bf1820d782228fbd9e25f318e'/>
<id>48144d3b29a1204bf1820d782228fbd9e25f318e</id>
<content type='text'>
We must make sure that the canvas is created somewhere in the item hierarchy of
a scene-graph initialized (thus visible) window. A Window { visible: true }
type of item is not sufficient, but we can simply use our testcase as
parent/associated item, because that one is equipped with a when: windowShown
condition.

Change-Id: I67a65208fae1a6fd953493eaa2898a324a6cc917
Reviewed-by: Gunnar Sletta &lt;gunnar.sletta@jollamobile.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We must make sure that the canvas is created somewhere in the item hierarchy of
a scene-graph initialized (thus visible) window. A Window { visible: true }
type of item is not sufficient, but we can simply use our testcase as
parent/associated item, because that one is equipped with a when: windowShown
condition.

Change-Id: I67a65208fae1a6fd953493eaa2898a324a6cc917
Reviewed-by: Gunnar Sletta &lt;gunnar.sletta@jollamobile.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Dont call updatePolish if an item is not visible</title>
<updated>2014-01-08T16:38:12+00:00</updated>
<author>
<name>Fabian Bumberger</name>
<email>fbumberger@rim.com</email>
</author>
<published>2013-12-12T13:12:25+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/qt/qtdeclarative.git/commit/?id=439f31f128e70ecae16544ee7041695c60e0b2d6'/>
<id>439f31f128e70ecae16544ee7041695c60e0b2d6</id>
<content type='text'>
[ChangeLog][QtQuick][QQuickItem] "updatePolish" is not called for invisible items any more.

Task-number: QTBUG-31830
Change-Id: Idad6107afaf0c6e6c96d9404ac286695c21883c7
Reviewed-by: Robin Burchell &lt;robin+qt@viroteck.net&gt;
Reviewed-by: Gunnar Sletta &lt;gunnar.sletta@jollamobile.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
[ChangeLog][QtQuick][QQuickItem] "updatePolish" is not called for invisible items any more.

Task-number: QTBUG-31830
Change-Id: Idad6107afaf0c6e6c96d9404ac286695c21883c7
Reviewed-by: Robin Burchell &lt;robin+qt@viroteck.net&gt;
Reviewed-by: Gunnar Sletta &lt;gunnar.sletta@jollamobile.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
