This commit is contained in:
Nicolas Werner 2021-12-08 02:44:58 +01:00
parent d409bab838
commit 6367d94623
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
1 changed files with 3 additions and 6 deletions

View File

@ -14,8 +14,7 @@
#include <mtx/common.hpp> #include <mtx/common.hpp>
class MxcImageRunnable class MxcImageRunnable : public QObject
: public QObject
{ {
Q_OBJECT Q_OBJECT
@ -29,8 +28,7 @@ public:
, m_requestedSize(requestedSize) , m_requestedSize(requestedSize)
, m_crop(crop) , m_crop(crop)
, m_radius(radius) , m_radius(radius)
{ {}
}
void run(); void run();
@ -39,8 +37,7 @@ public:
bool m_crop; bool m_crop;
double m_radius; double m_radius;
}; };
class MxcImageResponse class MxcImageResponse : public QQuickImageResponse
: public QQuickImageResponse
{ {
public: public:
MxcImageResponse(const QString &id, bool crop, double radius, const QSize &requestedSize) MxcImageResponse(const QString &id, bool crop, double radius, const QSize &requestedSize)