diff options
author | Jørgen Lind <jorgen.lind@nokia.com> | 2010-06-23 13:55:30 (GMT) |
---|---|---|
committer | Jørgen Lind <jorgen.lind@nokia.com> | 2010-06-23 13:57:13 (GMT) |
commit | 57522c3c389c133343c31770950648c3cf271406 (patch) | |
tree | c5e86aebe6fa8e957100a48e8d5e167bf6f59576 /src/gui/kernel/qapplication_lite.cpp | |
parent | fe26a83447d50422c992bde6bd429ba3209a9222 (diff) | |
download | Qt-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.cpp | 6 |
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(); |