void QWindowSystemInterface::handleSynchronousGeometryChange(QWindow *tlw, const QRect &newRect)
{
- QWindowSystemInterfacePrivate::GeometryChangeEvent *e = new QWindowSystemInterfacePrivate::GeometryChangeEvent(tlw,newRect);
- QGuiApplicationPrivate::processWindowSystemEvent(e); // send event immediately.
+ QWindowSystemInterfacePrivate::GeometryChangeEvent e(tlw,newRect);
+ QGuiApplicationPrivate::processWindowSystemEvent(&e); // send event immediately.
}
void QWindowSystemInterface::handleCloseEvent(QWindow *tlw)
void QWindowSystemInterface::handleSynchronousExposeEvent(QWindow *tlw, const QRegion ®ion)
{
- QWindowSystemInterfacePrivate::ExposeEvent *e = new QWindowSystemInterfacePrivate::ExposeEvent(tlw, region);
- QGuiApplicationPrivate::processWindowSystemEvent(e); // send event immediately.
+ QWindowSystemInterfacePrivate::ExposeEvent e(tlw, region);
+ QGuiApplicationPrivate::processWindowSystemEvent(&e); // send event immediately.
}
bool QWindowSystemInterface::sendWindowSystemEvents(QAbstractEventDispatcher *eventDispatcher, QEventLoop::ProcessEventsFlags flags)