summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorCarlos Manuel Duclos Vergara <carlos.duclos@nokia.com>2010-03-11 15:50:39 (GMT)
committerCarlos Manuel Duclos Vergara <carlos.duclos@nokia.com>2010-03-11 15:50:39 (GMT)
commit41bd30db724aa5cb816f6dea2b9fc5fd2cf7351c (patch)
tree11ac83d24f59a29fcf15bb440e3d0f78d360e5df /src
parentaa351766d6cecd6cad43cb40596d3ae9166a9647 (diff)
downloadQt-41bd30db724aa5cb816f6dea2b9fc5fd2cf7351c.zip
Qt-41bd30db724aa5cb816f6dea2b9fc5fd2cf7351c.tar.gz
Qt-41bd30db724aa5cb816f6dea2b9fc5fd2cf7351c.tar.bz2
Minisplitter doesn't paint to the bottom/right
The problem is not related to the Splitter handle but related to an optimization in the paintengine. We were comparing if the size of the widget had changed before setting the new mask, which might not be correct. We could have changed the mask without changing the widget size. Task-number: QTCREATORBUG-753 Reviewed-by: Morten Reviewed-by: Samuel
Diffstat (limited to 'src')
-rw-r--r--src/gui/kernel/qwidget_mac.mm6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/kernel/qwidget_mac.mm b/src/gui/kernel/qwidget_mac.mm
index 5bce17f..bee93b5 100644
--- a/src/gui/kernel/qwidget_mac.mm
+++ b/src/gui/kernel/qwidget_mac.mm
@@ -4682,8 +4682,10 @@ void QWidgetPrivate::syncCocoaMask()
if (!q->testAttribute(Qt::WA_WState_Created) || !extra)
return;
- if (extra->hasMask && extra->maskBits.size() != q->size()) {
- extra->maskBits = QImage(q->size(), QImage::Format_Mono);
+ if (extra->hasMask) {
+ if(extra->maskBits.size() != q->size()) {
+ extra->maskBits = QImage(q->size(), QImage::Format_Mono);
+ }
extra->maskBits.fill(QColor(Qt::color1).rgba());
extra->maskBits.setNumColors(2);
extra->maskBits.setColor(0, QColor(Qt::color0).rgba());