summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@qt.io>2016-08-17 13:12:28 +0200
committerTor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>2016-09-22 16:45:25 +0000
commit690587e922f83b04163c4ade574371905d683d9b (patch)
tree0102d8a62c30dfebda4ff3ddf0657d5094b6b0e6
parent3bd5876c89c13a22666fdd0b05fb38969eaa5f70 (diff)
QPaintDeviceWindow: Don’t request update on hide
This is not the time to update and the window is repainted on expose anyway. Change-Id: I07680a2c351d337e2f35a18b804a03631d5cedc5 Reviewed-by: Jake Petroules <jake.petroules@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>
-rw-r--r--src/gui/kernel/qpaintdevicewindow.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/gui/kernel/qpaintdevicewindow.cpp b/src/gui/kernel/qpaintdevicewindow.cpp
index c35478da38..4521c2f62c 100644
--- a/src/gui/kernel/qpaintdevicewindow.cpp
+++ b/src/gui/kernel/qpaintdevicewindow.cpp
@@ -187,9 +187,6 @@ void QPaintDeviceWindow::exposeEvent(QExposeEvent *exposeEvent)
// sometimes relative to the parent, depending on the platform plugin.
// We require local coords here.
d->doFlush(QRect(QPoint(0, 0), size()));
- } else if (!d->dirtyRegion.isEmpty()) {
- // Updates while non-exposed were ignored. Schedule an update now.
- requestUpdate();
}
}