src/gui/s60framework/qs60mainappui.cpp
branchRCL_3
changeset 4 3b1da2848fc7
parent 3 41300fa6a67c
child 7 3f74d0d4af4c
equal deleted inserted replaced
3:41300fa6a67c 4:3b1da2848fc7
     1 /****************************************************************************
     1 /****************************************************************************
     2 **
     2 **
     3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     4 ** All rights reserved.
     4 ** All rights reserved.
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     5 ** Contact: Nokia Corporation (qt-info@nokia.com)
     6 **
     6 **
     7 ** This file is part of the Symbian application wrapper of the Qt Toolkit.
     7 ** This file is part of the Symbian application wrapper of the Qt Toolkit.
     8 **
     8 **
   102 
   102 
   103     // Initialise app UI with standard value.
   103     // Initialise app UI with standard value.
   104     // ENoAppResourceFile and ENonStandardResourceFile makes UI to work without
   104     // ENoAppResourceFile and ENonStandardResourceFile makes UI to work without
   105     // resource files in most SDKs. S60 3rd FP1 public seems to require resource file
   105     // resource files in most SDKs. S60 3rd FP1 public seems to require resource file
   106     // even these flags are defined
   106     // even these flags are defined
   107     BaseConstructL(CAknAppUi::EAknEnableSkin);
   107     TInt flags = CAknAppUi::EAknEnableSkin;
   108 
   108     if (QApplication::testAttribute(Qt::AA_S60DontConstructApplicationPanes)) {
   109     CEikButtonGroupContainer* nativeContainer = Cba();
   109         flags |= CAknAppUi::ENoScreenFurniture | CAknAppUi::ENonStandardResourceFile;
   110     nativeContainer->SetCommandSetL(R_AVKON_SOFTKEYS_EMPTY_WITH_IDS);
   110     }
       
   111     BaseConstructL(flags);
       
   112 
       
   113     if (!QApplication::testAttribute(Qt::AA_S60DontConstructApplicationPanes)) {
       
   114         CEikButtonGroupContainer* nativeContainer = Cba();
       
   115         nativeContainer->SetCommandSetL(R_AVKON_SOFTKEYS_EMPTY_WITH_IDS);
       
   116     }
   111 }
   117 }
   112 
   118 
   113 /*!
   119 /*!
   114  * \brief Contructs an instance of QS60MainAppUi.
   120  * \brief Contructs an instance of QS60MainAppUi.
   115  */
   121  */