summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qapplication_lite.cpp
diff options
context:
space:
mode:
authorJørgen Lind <jorgen.lind@nokia.com>2010-06-23 13:55:30 (GMT)
committerJørgen Lind <jorgen.lind@nokia.com>2010-06-23 13:57:13 (GMT)
commit57522c3c389c133343c31770950648c3cf271406 (patch)
treec5e86aebe6fa8e957100a48e8d5e167bf6f59576 /src/gui/kernel/qapplication_lite.cpp
parentfe26a83447d50422c992bde6bd429ba3209a9222 (diff)
downloadQt-57522c3c389c133343c31770950648c3cf271406.zip
Qt-57522c3c389c133343c31770950648c3cf271406.tar.gz
Qt-57522c3c389c133343c31770950648c3cf271406.tar.bz2
Disable the all native child widgets on lighthouse
and make the mapping of native child widgets work with nativeParentWidget
Diffstat (limited to 'src/gui/kernel/qapplication_lite.cpp')
-rw-r--r--src/gui/kernel/qapplication_lite.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/kernel/qapplication_lite.cpp b/src/gui/kernel/qapplication_lite.cpp
index db31abd..9c36ef5 100644
--- a/src/gui/kernel/qapplication_lite.cpp
+++ b/src/gui/kernel/qapplication_lite.cpp
@@ -479,6 +479,7 @@ void qt_init(QApplicationPrivate *priv, int type)
{
Q_UNUSED(type);
+ qApp->setAttribute(Qt::AA_DontCreateNativeWidgetSiblings);
char *p;
char **argv = priv->argv;
int argc = priv->argc;
@@ -787,6 +788,11 @@ void QApplicationPrivate::processKeyEvent(QWindowSystemInterface::KeyEvent *e)
void QApplicationPrivate::processGeometryChange(QWidget *tlw, const QRect &newRect)
{
+ if (!tlw->isWindow())
+ return; //geo of native child widgets is controlled by lighthouse
+ //so we already have sent the events; besides this new rect
+ //is not mapped to parent
+
QRect cr(tlw->geometry());
bool isResize = cr.size() != newRect.size();