Ignore:
Timestamp:
Aug 2, 2010, 9:27:30 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.6.3 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/s60framework/qs60mainappui.cpp

    r651 r769  
    4646#include <eikmenup.h>
    4747#include <barsread.h>
    48 #include <s60main.rsg>
     48#include <qconfig.h>
     49#if defined(QT_LIBINFIX_UNQUOTED)
     50// Two level macro needed for proper expansion of libinfix
     51#  define QT_S60MAIN_RSG_2(x) <s60main##x##.rsg>
     52#  define QT_S60MAIN_RSG(x) QT_S60MAIN_RSG_2(x)
     53#  include QT_S60MAIN_RSG(QT_LIBINFIX_UNQUOTED)
     54#else
     55#  include <s60main.rsg>
     56#endif
    4957#include <avkon.rsg>
    5058
     
    5765#include <qdebug.h>
    5866
     67
     68
     69
    5970QT_BEGIN_NAMESPACE
    6071
     
    105116    // resource files in most SDKs. S60 3rd FP1 public seems to require resource file
    106117    // even these flags are defined
    107     TInt flags = CAknAppUi::EAknEnableSkin;
    108     if (QApplication::testAttribute(Qt::AA_S60DontConstructApplicationPanes)) {
    109         flags |= CAknAppUi::ENoScreenFurniture | CAknAppUi::ENonStandardResourceFile;
    110     }
     118    TInt flags = CAknAppUi::EAknEnableSkin
     119                 | CAknAppUi::ENoScreenFurniture
     120                 | CAknAppUi::ENonStandardResourceFile;
     121    // After 5th Edition S60, native side supports animated wallpapers.
     122        // However, there is no support for that feature on Qt side, so indicate to
     123        // native UI framework that this application will not support background animations.
     124    if (QSysInfo::s60Version() > QSysInfo::SV_S60_5_0)
     125        flags |= KAknDisableAnimationBackground;
    111126    BaseConstructL(flags);
    112 
    113     if (!QApplication::testAttribute(Qt::AA_S60DontConstructApplicationPanes)) {
    114         CEikButtonGroupContainer* nativeContainer = Cba();
    115         nativeContainer->SetCommandSetL(R_AVKON_SOFTKEYS_EMPTY_WITH_IDS);
    116     }
    117127}
    118128
Note: See TracChangeset for help on using the changeset viewer.