Commit 470c8b68 authored by Morten Johan Sørvig's avatar Morten Johan Sørvig
Browse files

QWidgetWindow: call base class close event impl


Call the QWindow close event handler when processing
close events in QWidgetWindow.

Change-Id: I2b8691735962f6a222a30a847bb18cc6c86b55d4
Task-number: QTBUG-43344
Reviewed-by: default avatarLaszlo Agocs <laszlo.agocs@theqtcompany.com>
parent a4897c22
No related merge requests found
Showing with 1 addition and 0 deletions
...@@ -708,6 +708,7 @@ void QWidgetWindow::handleCloseEvent(QCloseEvent *event) ...@@ -708,6 +708,7 @@ void QWidgetWindow::handleCloseEvent(QCloseEvent *event)
{ {
bool is_closing = m_widget->d_func()->close_helper(QWidgetPrivate::CloseWithSpontaneousEvent); bool is_closing = m_widget->d_func()->close_helper(QWidgetPrivate::CloseWithSpontaneousEvent);
event->setAccepted(is_closing); event->setAccepted(is_closing);
QWindow::event(event); // Call QWindow QCloseEvent handler.
} }
#ifndef QT_NO_WHEELEVENT #ifndef QT_NO_WHEELEVENT
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment