Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

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

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/painting/qgraphicssystemfactory.cpp

    r706 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    4747#include "qapplication.h"
    4848#include "qgraphicssystem_raster_p.h"
     49#include "qgraphicssystem_runtime_p.h"
    4950#include "qdebug.h"
    5051
    5152QT_BEGIN_NAMESPACE
    5253
    53 #if !defined(QT_NO_LIBRARY) && !defined(QT_NO_SETTINGS)
     54#ifndef QT_NO_LIBRARY
    5455Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader,
    5556    (QGraphicsSystemFactoryInterface_iid, QLatin1String("/graphicssystems"), Qt::CaseInsensitive))
     
    6970        system = QLatin1String("openvg");
    7071    }
    71 #elif defined (QT_GRAPHICSSYSTEM_RASTER) && !defined(Q_WS_WIN) && !defined(Q_WS_PM) && !defined(Q_OS_SYMBIAN)
     72#elif defined (QT_GRAPHICSSYSTEM_RUNTIME)
     73    if (system.isEmpty()) {
     74        system = QLatin1String("runtime");
     75    }
     76#elif defined (QT_GRAPHICSSYSTEM_RASTER) && !defined(Q_WS_WIN) && !defined(Q_OS_SYMBIAN) && !defined(Q_WS_PM)
    7277    if (system.isEmpty()) {
    7378        system = QLatin1String("raster");
     
    7782    if (system == QLatin1String("raster"))
    7883        return new QRasterGraphicsSystem;
     84    else if (system == QLatin1String("runtime"))
     85        return new QRuntimeGraphicsSystem;
    7986    else if (system.isEmpty() || system == QLatin1String("native"))
    8087        return 0;
    8188
    82 #if !defined(QT_NO_LIBRARY) && !defined(QT_NO_SETTINGS)
     89#ifndef QT_NO_LIBRARY
    8390    if (!ret) {
    8491        if (QGraphicsSystemFactoryInterface *factory = qobject_cast<QGraphicsSystemFactoryInterface*>(loader()->instance(system)))
     
    101108QStringList QGraphicsSystemFactory::keys()
    102109{
    103 #if !defined(QT_NO_LIBRARY) && !defined(QT_NO_SETTINGS)
     110#ifndef QT_NO_LIBRARY
    104111    QStringList list = loader()->keys();
    105112#else
Note: See TracChangeset for help on using the changeset viewer.