summaryrefslogtreecommitdiffstats
path: root/examples/widgets/itemviews/addressbook/tablemodel.cpp
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@qt.io>2017-10-16 11:54:21 +0200
committerTor Arne Vestbø <tor.arne.vestbo@qt.io>2017-10-17 13:44:26 +0000
commit92d67b58b8dbe2c5e63c5e57a179a3dc9acf382b (patch)
tree9ce738f5a17adcd214326877785ccff6d0fc753f /examples/widgets/itemviews/addressbook/tablemodel.cpp
parentac35f9c44c0fb3b2f40ae5585c497200b2ba743d (diff)
macOS: Defer update request on drawRect: when a real expose event is needed
The semantics of QWindow::requestUpdate() is that it's used when the window needs updates outside of the normal window invalidation callbacks such as expose and resize events, e.g. when doing animations. As a result, user code might not be prepared to handle window invalidations in the update-request callback, assuming those will still be delivered as normal, so that's what we do. This was exposed by resizing one of the simpler Qt Quick examples, where the resize's expose event was delivered as an update request, but didn't trigger an unconditional draw of the window as it should, as the scenegraph didn't change in response to the resize, which is typical for an update request. Change-Id: Ida8f85f1cf61c332aa9b199520e6854c48d3ab40 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'examples/widgets/itemviews/addressbook/tablemodel.cpp')
0 files changed, 0 insertions, 0 deletions