summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2009-10-19 12:42:36 (GMT)
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2009-10-19 12:47:53 (GMT)
commit5c2ed0f727aa300f70d1a50ce74ad1f0e7649dc1 (patch)
tree024e8ea6d57c32455b2bd249bacaabb03979a1d0
parent09df1c7c0ebb944f2581779d2e029c16014ddec1 (diff)
downloadQt-5c2ed0f727aa300f70d1a50ce74ad1f0e7649dc1.zip
Qt-5c2ed0f727aa300f70d1a50ce74ad1f0e7649dc1.tar.gz
Qt-5c2ed0f727aa300f70d1a50ce74ad1f0e7649dc1.tar.bz2
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
-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 8ce5001..abf5ba5 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()