summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qsoftkeymanager.cpp
diff options
context:
space:
mode:
authoraxis <qt-info@nokia.com>2010-01-07 15:01:58 (GMT)
committeraxis <qt-info@nokia.com>2010-01-08 15:11:27 (GMT)
commit4a84b272459160780529f654e6aee3abf8569b51 (patch)
tree766aaa2c34e0e7a9014971e6f59658ff2291b848 /src/gui/kernel/qsoftkeymanager.cpp
parent07b484b7c4685cfc2187be840a01e15f0fe08ff5 (diff)
downloadQt-4a84b272459160780529f654e6aee3abf8569b51.zip
Qt-4a84b272459160780529f654e6aee3abf8569b51.tar.gz
Qt-4a84b272459160780529f654e6aee3abf8569b51.tar.bz2
Added a flag to avoid construction of application panes.
This is purely an optimization for fullscreen-only apps. Task: QTBUG-6098 RevBy: Jason Barron RevBy: mread AutoTest: Included
Diffstat (limited to 'src/gui/kernel/qsoftkeymanager.cpp')
-rw-r--r--src/gui/kernel/qsoftkeymanager.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/kernel/qsoftkeymanager.cpp b/src/gui/kernel/qsoftkeymanager.cpp
index 0e98f39..b09ab8f 100644
--- a/src/gui/kernel/qsoftkeymanager.cpp
+++ b/src/gui/kernel/qsoftkeymanager.cpp
@@ -211,7 +211,8 @@ bool QSoftKeyManager::event(QEvent *e)
void QSoftKeyManagerPrivate::updateSoftKeys_sys(const QList<QAction*> &softkeys)
{
// lets not update softkeys if s60 native dialog or menu is shown
- if (CCoeEnv::Static()->AppUi()->IsDisplayingMenuOrDialog())
+ if (QApplication::testAttribute(Qt::AA_S60DontConstructApplicationPanes)
+ || CCoeEnv::Static()->AppUi()->IsDisplayingMenuOrDialog())
return;
CEikButtonGroupContainer* nativeContainer = S60->buttonGroupContainer();