2016-04-05 12:49:19 +00:00
|
|
|
// Aseprite Desktop Integration Module
|
|
|
|
// Copyright (C) 2016 Gabriel Rauter
|
|
|
|
//
|
2016-04-05 22:15:40 +00:00
|
|
|
// Licensed under the the MIT License (https://opensource.org/licenses/MIT).
|
2016-04-05 12:49:19 +00:00
|
|
|
|
2016-04-01 14:05:15 +00:00
|
|
|
#ifndef _ASEPRITE_THUMBCREATOR_H_
|
|
|
|
#define _ASEPRITE_THUMBCREATOR_H_
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QLoggingCategory>
|
|
|
|
Q_DECLARE_LOGGING_CATEGORY(LOG_ASEPRITE_THUMBCREATOR)
|
|
|
|
|
|
|
|
#include <kio/thumbcreator.h>
|
|
|
|
|
|
|
|
class AsepriteThumbCreator : public ThumbCreator {
|
2016-04-28 17:47:53 +00:00
|
|
|
public:
|
|
|
|
bool create(const QString& path, int width, int height, QImage& img) override;
|
|
|
|
Flags flags() const override;
|
2016-04-01 14:05:15 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|