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:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk

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

    r651 r769  
    4242// INCLUDE FILES
    4343#include <exception>
     44
    4445#include "qs60maindocument.h"
    4546#include "qs60mainapplication_p.h"
     
    5859}
    5960
    60 _LIT(KQtWrapperResourceFile, "\\resource\\apps\\s60main.rsc");
     61_LIT(KQtWrapperResourceFile, "\\resource\\apps\\s60main.rsc");
    6162
    6263/*!
     
    6465  \since 4.6
    6566  \brief The QS60MainApplication class provides support for migration from S60.
    66  
     67
    6768  \warning This class is provided only to get access to S60 specific
    6869  functionality in the application framework classes. It is not
    6970  portable. We strongly recommend against using it in new applications.
    70  
     71
    7172  The QS60MainApplication provides a helper class for use in migrating
    7273  from existing S60 based applications to Qt based applications. It is
  • 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
  • trunk/src/gui/s60framework/qs60maindocument.h

    r651 r769  
    4747#ifdef Q_WS_S60
    4848
    49 #include <akndoc.h>
     49#include <oc.h>
    5050
    5151class CEikApplication;
  • trunk/src/gui/s60framework/s60framework.pri

    r561 r769  
    55    "SOURCEPATH s60framework" \
    66    "START RESOURCE s60main.rss" \
     7
    78    "HEADER" \
    8     "TARGETPATH resource\apps" \
     9    "TARGETPATH apps" \
    910    "END"
    1011MMP_RULES += minimalAppResource31
     
    1819           s60framework/qs60mainappui.h \
    1920           s60framework/qs60maindocument.h
     21
     22
Note: See TracChangeset for help on using the changeset viewer.