src/gui/s60framework/qs60mainappui.cpp
changeset 29 b72c6db6890b
parent 23 89e065397ea6
child 30 5dc02b23752f
equal deleted inserted replaced
25:e24348a560a6 29:b72c6db6890b
    62 #include <QtGui/qmenu.h>
    62 #include <QtGui/qmenu.h>
    63 #include <private/qmenu_p.h>
    63 #include <private/qmenu_p.h>
    64 #include <private/qt_s60_p.h>
    64 #include <private/qt_s60_p.h>
    65 #include <qdebug.h>
    65 #include <qdebug.h>
    66 
    66 
       
    67 //Animated wallpapers in Qt applications are not supported.
       
    68 const TInt KAknDisableAnimationBackground = 0x02000000;
       
    69 
    67 QT_BEGIN_NAMESPACE
    70 QT_BEGIN_NAMESPACE
    68 
    71 
    69 /*!
    72 /*!
    70   \class QS60MainAppUi
    73   \class QS60MainAppUi
    71   \since 4.6
    74   \since 4.6
   113     // resource files in most SDKs. S60 3rd FP1 public seems to require resource file
   116     // resource files in most SDKs. S60 3rd FP1 public seems to require resource file
   114     // even these flags are defined
   117     // even these flags are defined
   115     TInt flags = CAknAppUi::EAknEnableSkin
   118     TInt flags = CAknAppUi::EAknEnableSkin
   116                  | CAknAppUi::ENoScreenFurniture
   119                  | CAknAppUi::ENoScreenFurniture
   117                  | CAknAppUi::ENonStandardResourceFile;
   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;
   118     BaseConstructL(flags);
   126     BaseConstructL(flags);
   119 }
   127 }
   120 
   128 
   121 /*!
   129 /*!
   122  * \brief Contructs an instance of QS60MainAppUi.
   130  * \brief Contructs an instance of QS60MainAppUi.