summaryrefslogtreecommitdiff
path: root/src/gui/kernel/qwidget_s60.cpp
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2009-10-19 15:42:36 +0300
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2009-10-19 15:47:53 +0300
commit5c2ed0f727aa300f70d1a50ce74ad1f0e7649dc1 (patch)
tree024e8ea6d57c32455b2bd249bacaabb03979a1d0 /src/gui/kernel/qwidget_s60.cpp
parent09df1c7c0ebb944f2581779d2e029c16014ddec1 (diff)
downloadqt4-tools-5c2ed0f727aa300f70d1a50ce74ad1f0e7649dc1.tar.gz
Fixed QWidget::raise in Symbian
If toplevel window is raised, the whole application is now raised to foreground. Task-number: QT-2162 Reviewed-by: axis
Diffstat (limited to 'src/gui/kernel/qwidget_s60.cpp')
-rw-r--r--src/gui/kernel/qwidget_s60.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/kernel/qwidget_s60.cpp b/src/gui/kernel/qwidget_s60.cpp
index 8ce50015b7..abf5ba5232 100644
--- a/src/gui/kernel/qwidget_s60.cpp
+++ b/src/gui/kernel/qwidget_s60.cpp
@@ -550,8 +550,13 @@ void QWidgetPrivate::raise_sys()
Q_Q(QWidget);
Q_ASSERT(q->testAttribute(Qt::WA_WState_Created));
- if (q->internalWinId())
+ if (q->internalWinId()) {
q->internalWinId()->DrawableWindow()->SetOrdinalPosition(0);
+
+ // If toplevel widget, raise app to foreground
+ if (q->isWindow())
+ S60->wsSession().SetWindowGroupOrdinalPosition(S60->windowGroup().Identifier(), 0);
+ }
}
void QWidgetPrivate::lower_sys()