Commit 8a5dc255 authored by Gilles Caulier's avatar Gilles Caulier 🗼
Browse files

use KPMetadata::isRawFile()

parent 78629503
......@@ -485,7 +485,7 @@ bool ActionThread::startPreProcessing(const KUrl::List& inUrls, ItemUrlsMap& pre
KUrl url = inUrls.at(i);
if (isRawFile(url.toLocalFile()))
if (KPMetadata::isRawFile(url.toLocalFile()))
{
KUrl preprocessedUrl, previewUrl;
......@@ -711,17 +711,6 @@ bool ActionThread::convertRaw(const KUrl& inUrl, KUrl& outUrl, const RawDecoding
return true;
}
bool ActionThread::isRawFile(const KUrl& url)
{
QString rawFilesExt(KDcraw::rawFiles());
QFileInfo fileInfo(url.toLocalFile());
if (rawFilesExt.toUpper().contains(fileInfo.suffix().toUpper()))
return true;
return false;
}
bool ActionThread::startEnfuse(const KUrl::List& inUrls, KUrl& outUrl,
const EnfuseSettings& settings,
const QString& enfusePath, QString& errors)
......
......@@ -58,7 +58,7 @@ class ActionThread : public QThread
public:
explicit ActionThread(QObject* parent);
explicit ActionThread(QObject* const parent);
~ActionThread();
void setEnfuseVersion(const double version);
......@@ -93,7 +93,6 @@ private:
const QString& alignPath, QString& errors);
bool computePreview(const KUrl& inUrl, KUrl& outUrl);
bool convertRaw(const KUrl& inUrl, KUrl& outUrl, const RawDecodingSettings& settings);
bool isRawFile(const KUrl& url);
bool startEnfuse(const KUrl::List& inUrls, KUrl& outUrl,
const EnfuseSettings& settings,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment