summaryrefslogtreecommitdiff
path: root/plugin/src/Caelestia/cutils.hpp
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-14 16:59:19 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-09-14 16:59:19 +1000
commit4b221e2fd5b7faf4747cff6c590b6ddc38870901 (patch)
tree3041635aa0e94a7783410ccf76424143060fa605 /plugin/src/Caelestia/cutils.hpp
parentinternal: close panels when fullscreen app (diff)
downloadcaelestia-shell-4b221e2fd5b7faf4747cff6c590b6ddc38870901.tar.gz
caelestia-shell-4b221e2fd5b7faf4747cff6c590b6ddc38870901.tar.bz2
caelestia-shell-4b221e2fd5b7faf4747cff6c590b6ddc38870901.zip
utilities: add recording control
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 892ff86..57ece14 100644
--- a/plugin/src/Caelestia/cutils.hpp
+++ b/plugin/src/Caelestia/cutils.hpp
@@ -21,8 +21,8 @@ public:
Q_INVOKABLE void saveItem(QQuickItem* target, const QUrl& path, const QRect& rect, QJSValue onSaved, QJSValue onFailed);
// clang-format on
- 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 bool copyFile(const QUrl& source, const QUrl& target, bool overwrite = true) const;
+ Q_INVOKABLE bool deleteFile(const QUrl& path) const;
Q_INVOKABLE void getDominantColour(QQuickItem* item, QJSValue callback);
Q_INVOKABLE void getDominantColour(QQuickItem* item, int rescaleSize, QJSValue callback);