diff options
author | Tor Arne Vestbø <tor.arne.vestbo@qt.io> | 2016-09-21 15:15:22 +0200 |
---|---|---|
committer | Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com> | 2016-09-22 16:45:01 +0000 |
commit | 524b59b0f51b554ecabbf2663891f9ae1650d122 (patch) | |
tree | ccee303f247a38305da290b30a1564dc40e70579 /src/gui/kernel/qguiapplication.cpp | |
parent | e0254fdacc41b89fc515e12766fcf2db1e4929ed (diff) |
Rename QPA ExposeEvent's window-pointer from 'exposed' to 'window'
The former is easy to mistake for the isExposed state of the event.
Change-Id: Ic769ac332901ac97449ebc8dcca5959b6b42df68
Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'src/gui/kernel/qguiapplication.cpp')
-rw-r--r-- | src/gui/kernel/qguiapplication.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp index 2ed7eb2cfb..16add8f627 100644 --- a/src/gui/kernel/qguiapplication.cpp +++ b/src/gui/kernel/qguiapplication.cpp @@ -2794,10 +2794,10 @@ void QGuiApplicationPrivate::reportRefreshRateChange(QWindowSystemInterfacePriva void QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::ExposeEvent *e) { - if (!e->exposed) + if (!e->window) return; - QWindow *window = e->exposed.data(); + QWindow *window = e->window.data(); if (!window) return; QWindowPrivate *p = qt_window_private(window); |