summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qapplication_s60.cpp
diff options
context:
space:
mode:
authorAlessandro Portale <aportale@trolltech.com>2009-05-27 18:14:43 (GMT)
committerAlessandro Portale <aportale@trolltech.com>2009-05-27 18:14:43 (GMT)
commitb0259b33de9813023a4228d28afd1fa56b99e9b0 (patch)
tree19a981f114c4ed22104b18269e15ce8d193dbd83 /src/gui/kernel/qapplication_s60.cpp
parentf7c182fa3d6526b05403b0374f29b30aed9995e0 (diff)
parentf734da2aac362a72d246d8c2a61ab6ef04fb6bd9 (diff)
downloadQt-b0259b33de9813023a4228d28afd1fa56b99e9b0.zip
Qt-b0259b33de9813023a4228d28afd1fa56b99e9b0.tar.gz
Qt-b0259b33de9813023a4228d28afd1fa56b99e9b0.tar.bz2
Merge commit 'origin/master' into softkeys
Diffstat (limited to 'src/gui/kernel/qapplication_s60.cpp')
-rw-r--r--src/gui/kernel/qapplication_s60.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication_s60.cpp b/src/gui/kernel/qapplication_s60.cpp
index db67fd8..ad1c842 100644
--- a/src/gui/kernel/qapplication_s60.cpp
+++ b/src/gui/kernel/qapplication_s60.cpp
@@ -14,6 +14,7 @@
#include "qevent.h"
#include "qeventdispatcher_s60_p.h"
#include "qwidget.h"
+#include "qdesktopwidget.h"
#include "private/qbackingstore_p.h"
#include "qt_s60_p.h"
#include "private/qevent_p.h"
@@ -52,6 +53,8 @@ static bool appNoGrab = false; // Grabbing enabled
Q_GUI_EXPORT QS60Data *qt_s60Data = 0;
extern bool qt_sendSpontaneousEvent(QObject*,QEvent*);
+extern QDesktopWidget *qt_desktopWidget; // qapplication.cpp
+
QWidget *qt_button_down = 0; // widget got last button-down
bool qt_nograb() // application no-grab option
@@ -991,6 +994,13 @@ int QApplication::s60ProcessEvent(TWsEvent *event)
case EEventScreenDeviceChanged:
if (S60)
S60->updateScreenSize();
+ if (qt_desktopWidget) {
+ QSize oldSize = qt_desktopWidget->size();
+ qt_desktopWidget->data->crect.setWidth(S60->screenWidthInPixels);
+ qt_desktopWidget->data->crect.setHeight(S60->screenHeightInPixels);
+ QResizeEvent e(qt_desktopWidget->size(), oldSize);
+ QApplication::sendEvent(qt_desktopWidget, &e);
+ }
return 0; // Propagate to CONE
case EEventWindowVisibilityChanged:
if (controlInMap) {