diff options
author | axis <qt-info@nokia.com> | 2010-01-07 15:01:58 (GMT) |
---|---|---|
committer | axis <qt-info@nokia.com> | 2010-01-08 15:11:27 (GMT) |
commit | 4a84b272459160780529f654e6aee3abf8569b51 (patch) | |
tree | 766aaa2c34e0e7a9014971e6f59658ff2291b848 /src/gui/s60framework/qs60mainappui.cpp | |
parent | 07b484b7c4685cfc2187be840a01e15f0fe08ff5 (diff) | |
download | Qt-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/s60framework/qs60mainappui.cpp')
-rw-r--r-- | src/gui/s60framework/qs60mainappui.cpp | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/gui/s60framework/qs60mainappui.cpp b/src/gui/s60framework/qs60mainappui.cpp index 4c4c994..4813fb2 100644 --- a/src/gui/s60framework/qs60mainappui.cpp +++ b/src/gui/s60framework/qs60mainappui.cpp @@ -104,10 +104,16 @@ void QS60MainAppUi::ConstructL() // ENoAppResourceFile and ENonStandardResourceFile makes UI to work without // resource files in most SDKs. S60 3rd FP1 public seems to require resource file // even these flags are defined - BaseConstructL(CAknAppUi::EAknEnableSkin); + TInt flags = CAknAppUi::EAknEnableSkin; + if (QApplication::testAttribute(Qt::AA_S60DontConstructApplicationPanes)) { + flags |= CAknAppUi::ENoScreenFurniture | CAknAppUi::ENonStandardResourceFile; + } + BaseConstructL(flags); - CEikButtonGroupContainer* nativeContainer = Cba(); - nativeContainer->SetCommandSetL(R_AVKON_SOFTKEYS_EMPTY_WITH_IDS); + if (!QApplication::testAttribute(Qt::AA_S60DontConstructApplicationPanes)) { + CEikButtonGroupContainer* nativeContainer = Cba(); + nativeContainer->SetCommandSetL(R_AVKON_SOFTKEYS_EMPTY_WITH_IDS); + } } /*! |