diff options
author | Matthew Cattell <matthew.cattell@nokia.com> | 2011-09-07 12:44:32 +0200 |
---|---|---|
committer | Samuel Rødal <samuel.rodal@nokia.com> | 2011-09-07 12:46:44 +0200 |
commit | 99414a3b4ee01a7e3427a40449603b5c3c4138cc (patch) | |
tree | a35c2215593cf4bd6585889733194758328c0a39 | |
parent | 37fe917272b72f375ed7e6a3396bacc763e8825e (diff) |
send resize event when window resized
Change-Id: I4415f1dbdf9bcc96dda10d00c8982a9d4ee433c4
Reviewed-on: http://codereview.qt.nokia.com/4344
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Samuel Rødal <samuel.rodal@nokia.com>
-rw-r--r-- | src/gui/kernel/qguiapplication.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/gui/kernel/qguiapplication.cpp b/src/gui/kernel/qguiapplication.cpp index f045861191..6cddf3ab73 100644 --- a/src/gui/kernel/qguiapplication.cpp +++ b/src/gui/kernel/qguiapplication.cpp @@ -46,6 +46,7 @@ #include "private/qevent_p.h" #include "qfont.h" #include "qplatformfontdatabase_qpa.h" +#include "qplatformwindow_qpa.h" #include <QtCore/QAbstractEventDispatcher> #include <QtCore/private/qcoreapplication_p.h> @@ -919,8 +920,13 @@ void QGuiApplicationPrivate::processExposeEvent(QWindowSystemInterfacePrivate::E if (!e->exposed) return; - QExposeEvent event(e->region); - QCoreApplication::sendSpontaneousEvent(e->exposed.data(), &event); + QWindow *window = e->exposed.data(); + + QResizeEvent resizeEvent(window->handle()->geometry().size(), window->size()); + QGuiApplication::sendSpontaneousEvent(window, &resizeEvent); + + QExposeEvent exposeEvent(e->region); + QCoreApplication::sendSpontaneousEvent(window, &exposeEvent); } Qt::DropAction QGuiApplicationPrivate::processDrag(QWindow *w, QMimeData *dropData, const QPoint &p) |