Camera RAW import through LibRaw with a develop sheet (12.6a)
This commit is contained in:
1 parent
374ba8ec73
commit
5a2fa91bc7
29 files changed
+1794
-257
No files matched your search
@@ -1,5 +1,6 @@
|
||||
#include "IO/ImageFileDrop.h"
|
||||
#include "Document/ProjectWorkspace.h"
|
||||
#include "IO/RawImporter.h"
|
||||
#include "Logging.h"
|
||||
#include <QDir>
|
||||
#include <QFile>
|
||||
@@ -7,7 +8,7 @@
|
||||
#include <algorithm>
|
||||
|
||||
namespace {
|
||||
// Swift's order: PNG, JPEG, HEIC, TIFF, Photoshop, then any picture.
|
||||
// Swift's order: PNG, JPEG, HEIC, TIFF, Photoshop, RAW, then any.
|
||||
QStringList pictureFormats(const QMimeData &data)
|
||||
{
|
||||
QStringList formats;
|
||||
@@ -15,6 +16,9 @@ QStringList pictureFormats(const QMimeData &data)
|
||||
QStringLiteral("image/vnd.adobe.photoshop")})
|
||||
if (data.hasFormat(format))
|
||||
formats << format;
|
||||
for (const QString &format : data.formats())
|
||||
if (RawImporter::isRawType(format) && !formats.contains(format))
|
||||
formats << format;
|
||||
for (const QString &format : data.formats())
|
||||
if (format.startsWith(QLatin1String("image/")) && !formats.contains(format))
|
||||
formats << format;
|
||||
|
||||
Reference in new issue
Block a user