diff options
author | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2009-10-22 11:59:56 (GMT) |
---|---|---|
committer | Miikka Heikkinen <miikka.heikkinen@digia.com> | 2009-10-22 12:11:01 (GMT) |
commit | abae4e913e91e64153edcc8cb771393062432ea2 (patch) | |
tree | c8eb585dc49a5bb9773d22314debd113109be66a | |
parent | d4a136dc3f1176665c19eec24fa43f40e5180a89 (diff) | |
download | Qt-abae4e913e91e64153edcc8cb771393062432ea2.zip Qt-abae4e913e91e64153edcc8cb771393062432ea2.tar.gz Qt-abae4e913e91e64153edcc8cb771393062432ea2.tar.bz2 |
Lowering toplevel widget puts app to background.
Since raising toplevel widget nowdays brings the whole app to top,
logically lowering toplevel widget should put the app to background.
Reviewed-by: axis
-rw-r--r-- | src/gui/kernel/qwidget_s60.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gui/kernel/qwidget_s60.cpp b/src/gui/kernel/qwidget_s60.cpp index abf5ba5..cb615fe 100644 --- a/src/gui/kernel/qwidget_s60.cpp +++ b/src/gui/kernel/qwidget_s60.cpp @@ -564,8 +564,13 @@ void QWidgetPrivate::lower_sys() Q_Q(QWidget); Q_ASSERT(q->testAttribute(Qt::WA_WState_Created)); - if (q->internalWinId()) - q->internalWinId()->DrawableWindow()->SetOrdinalPosition(-1); + if (q->internalWinId()) { + // If toplevel widget, lower app to background + if (q->isWindow()) + S60->wsSession().SetWindowGroupOrdinalPosition(S60->windowGroup().Identifier(), -1); + else + q->internalWinId()->DrawableWindow()->SetOrdinalPosition(-1); + } if (!q->isWindow()) invalidateBuffer(q->rect()); |