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>
This commit is contained in:
parent
e0254fdacc
commit
524b59b0f5
@ -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);
|
||||
|
@ -361,10 +361,10 @@ void QWindowSystemInterface::handleWheelEvent(QWindow *tlw, ulong timestamp, con
|
||||
}
|
||||
|
||||
|
||||
QWindowSystemInterfacePrivate::ExposeEvent::ExposeEvent(QWindow *exposed, const QRegion ®ion)
|
||||
QWindowSystemInterfacePrivate::ExposeEvent::ExposeEvent(QWindow *window, const QRegion ®ion)
|
||||
: WindowSystemEvent(Expose)
|
||||
, exposed(exposed)
|
||||
, isExposed(exposed && exposed->handle() ? exposed->handle()->isExposed() : false)
|
||||
, window(window)
|
||||
, isExposed(window && window->handle() ? window->handle()->isExposed() : false)
|
||||
, region(region)
|
||||
{
|
||||
}
|
||||
|
@ -330,8 +330,8 @@ public:
|
||||
|
||||
class ExposeEvent : public WindowSystemEvent {
|
||||
public:
|
||||
ExposeEvent(QWindow *exposed, const QRegion ®ion);
|
||||
QPointer<QWindow> exposed;
|
||||
ExposeEvent(QWindow *window, const QRegion ®ion);
|
||||
QPointer<QWindow> window;
|
||||
bool isExposed;
|
||||
QRegion region;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user