summaryrefslogtreecommitdiff
path: root/plugin/src/Caelestia/cutils.hpp
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-27 23:29:11 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-08-27 23:29:11 +1000
commitbec98e1fc5a25e68e3cc7bf7585c092a82a40633 (patch)
treeea28691f78ee45c001d3230ef63370b22d8f3e7f /plugin/src/Caelestia/cutils.hpp
parenthypr: fix active window and window focus (#483) (diff)
downloadcaelestia-shell-bec98e1fc5a25e68e3cc7bf7585c092a82a40633.tar.gz
caelestia-shell-bec98e1fc5a25e68e3cc7bf7585c092a82a40633.tar.bz2
caelestia-shell-bec98e1fc5a25e68e3cc7bf7585c092a82a40633.zip
plugin: better getDominantColour
Use callback instead of setting prop
Diffstat (limited to 'plugin/src/Caelestia/cutils.hpp')
-rw-r--r--plugin/src/Caelestia/cutils.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugin/src/Caelestia/cutils.hpp b/plugin/src/Caelestia/cutils.hpp
index 36120f4..08fad41 100644
--- a/plugin/src/Caelestia/cutils.hpp
+++ b/plugin/src/Caelestia/cutils.hpp
@@ -20,6 +20,6 @@ public:
Q_INVOKABLE bool copyFile(const QUrl& source, const QUrl& target) const;
Q_INVOKABLE bool copyFile(const QUrl& source, const QUrl& target, bool overwrite) const;
- Q_INVOKABLE void getDominantColour(QQuickItem* item) const;
- Q_INVOKABLE void getDominantColour(QQuickItem* item, int width, int height) const;
+ Q_INVOKABLE void getDominantColour(QQuickItem* item, QJSValue callback) const;
+ Q_INVOKABLE void getDominantColour(QQuickItem* item, int width, int height, QJSValue callback) const;
};