Changeset 846 for trunk/src/plugins/imageformats/svg/main.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/plugins/imageformats/svg/main.cpp
r651 r846 1 1 /**************************************************************************** 2 2 ** 3 ** Copyright (C) 201 0Nokia Corporation and/or its subsidiary(-ies).3 ** Copyright (C) 201 Nokia Corporation and/or its subsidiary(-ies). 4 4 ** All rights reserved. 5 5 ** Contact: Nokia Corporation ([email protected]) … … 63 63 QStringList QSvgPlugin::keys() const 64 64 { 65 return QStringList() << QLatin1String("svg") ;65 return QStringList() << QLatin1String("svg"); 66 66 } 67 67 68 68 QImageIOPlugin::Capabilities QSvgPlugin::capabilities(QIODevice *device, const QByteArray &format) const 69 69 { 70 //### canRead disabled for now because it's hard to detect 71 // whether the file is actually svg without parsing it 72 //if (device->isReadable() && QSvgIOHandler::canRead(device)) 73 74 if (format == "svg") 70 if (format == "svg" || format == "svgz") 75 71 return Capabilities(CanRead); 76 else 77 return 0; 78 79 80 if (!device->isOpen()) 72 if (!format.isEmpty()) 81 73 return 0; 82 74 83 75 Capabilities cap; 84 if (device->isReadable() )76 if (device->isReadable()) 85 77 cap |= CanRead; 86 78 return cap;
Note:
See TracChangeset
for help on using the changeset viewer.