mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-25 15:18:23 +00:00
Minor formatting issues inside desktop/
This commit is contained in:
parent
5a278780a0
commit
4b7eb54511
@ -15,5 +15,5 @@ if [ $# -ge 2 -a $# -lt 4 ]; then
|
|||||||
fi
|
fi
|
||||||
mkdir -p $(dirname "$2"); mv /tmp/Aseprite/$filename.png $2;
|
mkdir -p $(dirname "$2"); mv /tmp/Aseprite/$filename.png $2;
|
||||||
else
|
else
|
||||||
echo "Parameters for aseprite thumbnailer are: inputfile outputfile [size]"
|
echo "Parameters for aseprite thumbnailer are: inputfile outputfile [size]"
|
||||||
fi
|
fi
|
||||||
|
@ -20,7 +20,8 @@ extern "C"
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
bool AsepriteThumbCreator::create(const QString& path, int width, int height, QImage& img ) {
|
bool AsepriteThumbCreator::create(const QString& path, int width, int height, QImage& img)
|
||||||
|
{
|
||||||
QProcess process;
|
QProcess process;
|
||||||
QStringList list;
|
QStringList list;
|
||||||
QString tmpFile = QString(QCryptographicHash::hash(path.toLocal8Bit(),QCryptographicHash::Md5).toHex());
|
QString tmpFile = QString(QCryptographicHash::hash(path.toLocal8Bit(),QCryptographicHash::Md5).toHex());
|
||||||
|
@ -13,9 +13,9 @@ Q_DECLARE_LOGGING_CATEGORY(LOG_ASEPRITE_THUMBCREATOR)
|
|||||||
#include <kio/thumbcreator.h>
|
#include <kio/thumbcreator.h>
|
||||||
|
|
||||||
class AsepriteThumbCreator : public ThumbCreator {
|
class AsepriteThumbCreator : public ThumbCreator {
|
||||||
public:
|
public:
|
||||||
bool create(const QString& path, int width, int height, QImage& img) override;
|
bool create(const QString& path, int width, int height, QImage& img) override;
|
||||||
Flags flags() const override;
|
Flags flags() const override;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user