diff options
author | Prasanth Ullattil <prasanth.ullattil@nokia.com> | 2010-03-17 20:45:02 (GMT) |
---|---|---|
committer | Prasanth Ullattil <prasanth.ullattil@nokia.com> | 2010-03-17 20:45:02 (GMT) |
commit | 41ab4760d0cac439d9dbe26f95cd6327039fbb8e (patch) | |
tree | a8913c66e49e23a04c686aee46e2b83137ba8715 /src/gui | |
parent | ba39db7b374eb3e4ded5150c1ad58ca38f3b7394 (diff) | |
download | Qt-41ab4760d0cac439d9dbe26f95cd6327039fbb8e.zip Qt-41ab4760d0cac439d9dbe26f95cd6327039fbb8e.tar.gz Qt-41ab4760d0cac439d9dbe26f95cd6327039fbb8e.tar.bz2 |
Remove unwanted code in f8d5f2594a9b268b9eeecf95b24b23fc940c71ce
Reviewed-by: Trust Me
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/kernel/qcocoaview_mac.mm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gui/kernel/qcocoaview_mac.mm b/src/gui/kernel/qcocoaview_mac.mm index e745074..0bc57e0 100644 --- a/src/gui/kernel/qcocoaview_mac.mm +++ b/src/gui/kernel/qcocoaview_mac.mm @@ -491,9 +491,7 @@ static int qCocoaViewCount = 0; CGContextRef cg = (CGContextRef)[[NSGraphicsContext currentContext] graphicsPort]; qwidgetprivate->hd = cg; CGContextSaveGState(cg); - CGFloat components[] = {1,0,0,1}; - CGContextSetFillColor(cg, components); - CGContextFillRect(cg, aRect); + if (qwidget->isVisible() && qwidget->updatesEnabled()) { //process the actual paint event. if (qwidget->testAttribute(Qt::WA_WState_InPaintEvent)) qWarning("QWidget::repaint: Recursive repaint detected"); |