src/gui/s60framework/qs60mainappui.cpp
branchRCL_3
changeset 13 cc75c76972ee
parent 12 25a739ee40f4
child 14 c0432d11811c
equal deleted inserted replaced
12:25a739ee40f4 13:cc75c76972ee
   110 
   110 
   111     // Initialise app UI with standard value.
   111     // Initialise app UI with standard value.
   112     // ENoAppResourceFile and ENonStandardResourceFile makes UI to work without
   112     // ENoAppResourceFile and ENonStandardResourceFile makes UI to work without
   113     // resource files in most SDKs. S60 3rd FP1 public seems to require resource file
   113     // resource files in most SDKs. S60 3rd FP1 public seems to require resource file
   114     // even these flags are defined
   114     // even these flags are defined
   115     TInt flags = CAknAppUi::EAknEnableSkin
   115     TInt flags = CAknAppUi::EAknEnableSkin;
   116                  | CAknAppUi::ENoScreenFurniture
   116     if (QApplication::testAttribute(Qt::AA_S60DontConstructApplicationPanes)) {
   117                  | CAknAppUi::ENonStandardResourceFile;
   117         flags |= CAknAppUi::ENoScreenFurniture | CAknAppUi::ENonStandardResourceFile;
       
   118     }
   118     BaseConstructL(flags);
   119     BaseConstructL(flags);
       
   120 
       
   121     if (!QApplication::testAttribute(Qt::AA_S60DontConstructApplicationPanes)) {
       
   122         CEikButtonGroupContainer* nativeContainer = Cba();
       
   123         nativeContainer->SetCommandSetL(R_AVKON_SOFTKEYS_EMPTY_WITH_IDS);
       
   124     }
   119 }
   125 }
   120 
   126 
   121 /*!
   127 /*!
   122  * \brief Contructs an instance of QS60MainAppUi.
   128  * \brief Contructs an instance of QS60MainAppUi.
   123  */
   129  */