mirror of
https://github.com/tumic0/QtPBFImagePlugin.git
synced 2024-11-23 19:25:55 +01:00
Use the official IANA MIME-type and extension
This commit is contained in:
parent
c3df78a455
commit
5ccb93bd59
@ -1,4 +1,4 @@
|
||||
{
|
||||
"Keys": [ "pbf" ],
|
||||
"MimeTypes": [ "image/pbf" ]
|
||||
"Keys": [ "mvt" ],
|
||||
"MimeTypes": [ "application/vnd.mapbox-vector-tile" ]
|
||||
}
|
||||
|
9
pkg/pbfplugin.xml
Normal file
9
pkg/pbfplugin.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
|
||||
<mime-type type="application/vnd.mapbox-vector-tile">
|
||||
<comment>Mapbox Vector Tile</comment>
|
||||
<sub-class-of type="application/octet-stream"/>
|
||||
<generic-icon name="application/octet-stream"/>
|
||||
<glob pattern="*.mvt"/>
|
||||
</mime-type>
|
||||
</mime-info>
|
@ -21,7 +21,7 @@ QImageIOPlugin::Capabilities PBFPlugin::capabilities(QIODevice *device,
|
||||
const QByteArray &format) const
|
||||
{
|
||||
if (device == 0)
|
||||
return (format == "pbf") ? Capabilities(CanRead) : Capabilities();
|
||||
return (format == "mvt") ? Capabilities(CanRead) : Capabilities();
|
||||
else
|
||||
return (device->isReadable() && PBFHandler::canRead(device))
|
||||
? Capabilities(CanRead) : Capabilities();
|
||||
|
Loading…
Reference in New Issue
Block a user