summaryrefslogtreecommitdiff
path: root/plugin/src/Caelestia/cachingimagemanager.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/src/Caelestia/cachingimagemanager.hpp')
-rw-r--r--plugin/src/Caelestia/cachingimagemanager.hpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugin/src/Caelestia/cachingimagemanager.hpp b/plugin/src/Caelestia/cachingimagemanager.hpp
index 602d862..c78dcda 100644
--- a/plugin/src/Caelestia/cachingimagemanager.hpp
+++ b/plugin/src/Caelestia/cachingimagemanager.hpp
@@ -13,7 +13,6 @@ class CachingImageManager : public QObject {
Q_PROPERTY(QString path READ path WRITE setPath NOTIFY pathChanged);
Q_PROPERTY(QUrl cachePath READ cachePath NOTIFY cachePathChanged);
- Q_PROPERTY(bool usingCache READ usingCache NOTIFY usingCacheChanged);
public:
explicit CachingImageManager(QObject* parent = nullptr): QObject(parent) {};
@@ -28,7 +27,6 @@ public:
void setPath(const QString& path);
[[nodiscard]] QUrl cachePath() const;
- [[nodiscard]] bool usingCache() const;
Q_INVOKABLE void updateSource();
Q_INVOKABLE void updateSource(const QString& path);
@@ -47,7 +45,6 @@ private:
QString m_path;
QUrl m_cachePath;
- bool m_usingCache;
QMetaObject::Connection m_widthConn;
QMetaObject::Connection m_heightConn;
@@ -56,5 +53,6 @@ private:
[[nodiscard]] int effectiveWidth() const;
[[nodiscard]] int effectiveHeight() const;
+ void createCache(const QString& path, const QString& cache, const QSize& size) const;
[[nodiscard]] QString sha256sum(const QString& path) const;
};