src/gui/image/qimagewriter.cpp
branchRCL_3
changeset 13 c0432d11811c
parent 4 3b1da2848fc7
equal deleted inserted replaced
12:cc75c76972ee 13:c0432d11811c
   195 #if !defined (QT_NO_LIBRARY) && !defined(QT_NO_SETTINGS)
   195 #if !defined (QT_NO_LIBRARY) && !defined(QT_NO_SETTINGS)
   196     if (!testFormat.isEmpty()) {
   196     if (!testFormat.isEmpty()) {
   197         for (int i = 0; i < keys.size(); ++i) {
   197         for (int i = 0; i < keys.size(); ++i) {
   198             QImageIOPlugin *plugin = qobject_cast<QImageIOPlugin *>(l->instance(keys.at(i)));
   198             QImageIOPlugin *plugin = qobject_cast<QImageIOPlugin *>(l->instance(keys.at(i)));
   199             if (plugin && (plugin->capabilities(device, testFormat) & QImageIOPlugin::CanWrite)) {
   199             if (plugin && (plugin->capabilities(device, testFormat) & QImageIOPlugin::CanWrite)) {
       
   200                 delete handler;
   200                 handler = plugin->create(device, testFormat);
   201                 handler = plugin->create(device, testFormat);
   201                 break;
   202                 break;
   202             }
   203             }
   203         }
   204         }
   204     }
   205     }