diff options
author | Markku Luukkainen <markku.luukkainen@digia.com> | 2009-06-06 17:37:37 (GMT) |
---|---|---|
committer | Markku Luukkainen <markku.luukkainen@digia.com> | 2009-06-06 17:37:37 (GMT) |
commit | ef0f6267822c782f0b555e15ddab24c41c51d2e8 (patch) | |
tree | 2638fa405a65e5b888b026f96584925fed7e3851 /src/gui/kernel/qwidget_s60.cpp | |
parent | 9420db9284f20e28239d1c6e8a4cccf7707c014e (diff) | |
download | Qt-ef0f6267822c782f0b555e15ddab24c41c51d2e8.zip Qt-ef0f6267822c782f0b555e15ddab24c41c51d2e8.tar.gz Qt-ef0f6267822c782f0b555e15ddab24c41c51d2e8.tar.bz2 |
Added support for setting softkeys dynamically
Diffstat (limited to 'src/gui/kernel/qwidget_s60.cpp')
-rw-r--r-- | src/gui/kernel/qwidget_s60.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/kernel/qwidget_s60.cpp b/src/gui/kernel/qwidget_s60.cpp index 4e03206..cb2fc8f 100644 --- a/src/gui/kernel/qwidget_s60.cpp +++ b/src/gui/kernel/qwidget_s60.cpp @@ -107,7 +107,8 @@ static bool isSame(const QList<QAction*>& a, const QList<QAction*>& b) void QWidgetPrivate::setNativeSoftKeys(const QList<QAction*> &softkeys) { - if (QApplication::focusWidget()) { + Q_Q(QWidget); + if (QApplication::focusWidget() && q!=QApplication::focusWidget()) { QList<QAction *> old = QApplication::focusWidget()->softKeys(); if (isSame(old, softkeys )) return; |