projects
/
konrad/qtdeclarative.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
59c3556
)
Don't create geometries for transparent Rectangle {} elements
author
Gunnar Sletta
<gunnar.sletta@nokia.com>
Wed, 26 Oct 2011 10:42:25 +0000 (12:42 +0200)
committer
Qt by Nokia
<qt-info@nokia.com>
Mon, 7 Nov 2011 17:58:27 +0000 (18:58 +0100)
Change-Id: If59f7ad7f85849559707cecacc9e2d917e68ab26
Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
src/declarative/items/qquickrectangle.cpp
patch
|
blob
|
history
diff --git
a/src/declarative/items/qquickrectangle.cpp
b/src/declarative/items/qquickrectangle.cpp
index
a09202c
..
c3cbaaa
100644
(file)
--- a/
src/declarative/items/qquickrectangle.cpp
+++ b/
src/declarative/items/qquickrectangle.cpp
@@
-492,7
+492,8
@@
QSGNode *QQuickRectangle::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeData
Q_UNUSED(data);
Q_D(QQuickRectangle);
- if (width() <= 0 || height() <= 0) {
+ if (width() <= 0 || height() <= 0
+ || (d->color.alpha() == 0 && (!d->pen || d->pen->width() == 0 || d->pen->color().alpha() == 0))) {
delete oldNode;
return 0;
}