summaryrefslogtreecommitdiff
path: root/plugin/src/Caelestia/cachingimagemanager.hpp
diff options
context:
space:
mode:
authorSoramane <61896496+soramanew@users.noreply.github.com>2025-08-29 23:37:50 +1000
committerSoramane <61896496+soramanew@users.noreply.github.com>2025-08-29 23:37:50 +1000
commit4a6fc3c49c1b803bbd8669ca1c8cef717038b3fa (patch)
tree2c338a6f7285f9d082ecd0f1191e21c2effcdbe9 /plugin/src/Caelestia/cachingimagemanager.hpp
parentcmake: better modules enable/disable (diff)
downloadcaelestia-shell-4a6fc3c49c1b803bbd8669ca1c8cef717038b3fa.tar.gz
caelestia-shell-4a6fc3c49c1b803bbd8669ca1c8cef717038b3fa.tar.bz2
caelestia-shell-4a6fc3c49c1b803bbd8669ca1c8cef717038b3fa.zip
plugin/cim: update on size change
Diffstat (limited to '')
-rw-r--r--plugin/src/Caelestia/cachingimagemanager.hpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/plugin/src/Caelestia/cachingimagemanager.hpp b/plugin/src/Caelestia/cachingimagemanager.hpp
index d2d7f74..602d862 100644
--- a/plugin/src/Caelestia/cachingimagemanager.hpp
+++ b/plugin/src/Caelestia/cachingimagemanager.hpp
@@ -30,6 +30,9 @@ public:
[[nodiscard]] QUrl cachePath() const;
[[nodiscard]] bool usingCache() const;
+ Q_INVOKABLE void updateSource();
+ Q_INVOKABLE void updateSource(const QString& path);
+
signals:
void itemChanged();
void cacheDirChanged();
@@ -46,9 +49,12 @@ private:
QUrl m_cachePath;
bool m_usingCache;
+ QMetaObject::Connection m_widthConn;
+ QMetaObject::Connection m_heightConn;
+
[[nodiscard]] qreal effectiveScale() const;
- int effectiveWidth() const;
- int effectiveHeight() const;
+ [[nodiscard]] int effectiveWidth() const;
+ [[nodiscard]] int effectiveHeight() const;
[[nodiscard]] QString sha256sum(const QString& path) const;
};