From bec98e1fc5a25e68e3cc7bf7585c092a82a40633 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 27 Aug 2025 23:29:11 +1000 Subject: plugin: better getDominantColour Use callback instead of setting prop --- plugin/src/Caelestia/cutils.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugin/src/Caelestia/cutils.hpp') 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; }; -- cgit v1.2.3-freya