old render cleanup part 2
This commit is contained in:
40 files changed
+329
-3643
No files matched your search
@@ -1,24 +0,0 @@
|
||||
#pragma once
|
||||
|
||||
#include <QSize>
|
||||
#include <QString>
|
||||
|
||||
#include "backend/IImageProvider.h"
|
||||
|
||||
class WebImageProvider : public IImageProvider {
|
||||
public:
|
||||
QQuickImageResponse *requestImageResponse(const QString &id,
|
||||
const QSize &requestedSize) override;
|
||||
|
||||
void setFilePath(const QString &) override {}
|
||||
void clear() override {}
|
||||
QString coverImageUrl(const QString &) const override { return {}; }
|
||||
QString scheme() const override;
|
||||
|
||||
// Download (or load from disk cache) a web image. Thread-safe, may block.
|
||||
static QImage loadWebImage(const QString &urlString,
|
||||
const QSize &requestedSize);
|
||||
|
||||
static QString cacheDir();
|
||||
static QString cacheFilePath(const QString &urlString);
|
||||
};
|
||||
Reference in new issue
Block a user