Changeset 846 for trunk/src/gui/painting/qgraphicssystemfactory.cpp
- Timestamp:
- May 5, 2011, 5:36:53 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/vendor/nokia/qt/4.7.2 (added) merged: 845 /branches/vendor/nokia/qt/current merged: 844 /branches/vendor/nokia/qt/4.6.3 removed
- Property svn:mergeinfo changed
-
trunk/src/gui/painting/qgraphicssystemfactory.cpp
r706 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation (qt-info@nokia.com) … … 47 47 #include "qapplication.h" 48 48 #include "qgraphicssystem_raster_p.h" 49 #include "qgraphicssystem_runtime_p.h" 49 50 #include "qdebug.h" 50 51 51 52 QT_BEGIN_NAMESPACE 52 53 53 #if !defined(QT_NO_LIBRARY) && !defined(QT_NO_SETTINGS)54 #ifndef QT_NO_LIBRARY 54 55 Q_GLOBAL_STATIC_WITH_ARGS(QFactoryLoader, loader, 55 56 (QGraphicsSystemFactoryInterface_iid, QLatin1String("/graphicssystems"), Qt::CaseInsensitive)) … … 69 70 system = QLatin1String("openvg"); 70 71 } 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) 72 77 if (system.isEmpty()) { 73 78 system = QLatin1String("raster"); … … 77 82 if (system == QLatin1String("raster")) 78 83 return new QRasterGraphicsSystem; 84 else if (system == QLatin1String("runtime")) 85 return new QRuntimeGraphicsSystem; 79 86 else if (system.isEmpty() || system == QLatin1String("native")) 80 87 return 0; 81 88 82 #if !defined(QT_NO_LIBRARY) && !defined(QT_NO_SETTINGS)89 #ifndef QT_NO_LIBRARY 83 90 if (!ret) { 84 91 if (QGraphicsSystemFactoryInterface *factory = qobject_cast<QGraphicsSystemFactoryInterface*>(loader()->instance(system))) … … 101 108 QStringList QGraphicsSystemFactory::keys() 102 109 { 103 #if !defined(QT_NO_LIBRARY) && !defined(QT_NO_SETTINGS)110 #ifndef QT_NO_LIBRARY 104 111 QStringList list = loader()->keys(); 105 112 #else
Note:
See TracChangeset
for help on using the changeset viewer.