diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-27 22:13:21 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-27 22:13:21 +1000 |
| commit | 573423742a77816699f219817ba462c7f6f5d33a (patch) | |
| tree | 9461ebfe7cb097439489a21094cebc4b3d430d59 /plugin/src/Caelestia/cutils.hpp | |
| parent | plugin/cim: fix cache dir (diff) | |
| download | caelestia-shell-573423742a77816699f219817ba462c7f6f5d33a.tar.gz caelestia-shell-573423742a77816699f219817ba462c7f6f5d33a.tar.bz2 caelestia-shell-573423742a77816699f219817ba462c7f6f5d33a.zip | |
plugin: make thread safe
Diffstat (limited to 'plugin/src/Caelestia/cutils.hpp')
| -rw-r--r-- | plugin/src/Caelestia/cutils.hpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugin/src/Caelestia/cutils.hpp b/plugin/src/Caelestia/cutils.hpp index 76beb2b..c796e8b 100644 --- a/plugin/src/Caelestia/cutils.hpp +++ b/plugin/src/Caelestia/cutils.hpp @@ -10,12 +10,12 @@ class CUtils : public QObject { QML_SINGLETON; public: - Q_INVOKABLE void saveItem(QQuickItem* target, const QUrl& path) const; - Q_INVOKABLE void saveItem(QQuickItem* target, const QUrl& path, const QRect& rect) const; - Q_INVOKABLE void saveItem(QQuickItem* target, const QUrl& path, QJSValue onSaved) const; - Q_INVOKABLE void saveItem(QQuickItem* target, const QUrl& path, QJSValue onSaved, QJSValue onFailed) const; - Q_INVOKABLE void saveItem(QQuickItem* target, const QUrl& path, const QRect& rect, QJSValue onSaved) const; - Q_INVOKABLE void saveItem(QQuickItem* target, const QUrl& path, const QRect& rect, QJSValue onSaved, QJSValue onFailed) const; + Q_INVOKABLE void saveItem(QQuickItem* target, const QUrl& path); + Q_INVOKABLE void saveItem(QQuickItem* target, const QUrl& path, const QRect& rect); + Q_INVOKABLE void saveItem(QQuickItem* target, const QUrl& path, QJSValue onSaved); + Q_INVOKABLE void saveItem(QQuickItem* target, const QUrl& path, QJSValue onSaved, QJSValue onFailed); + Q_INVOKABLE void saveItem(QQuickItem* target, const QUrl& path, const QRect& rect, QJSValue onSaved); + Q_INVOKABLE void saveItem(QQuickItem* target, const QUrl& path, const QRect& rect, QJSValue onSaved, QJSValue onFailed); Q_INVOKABLE bool copyFile(const QUrl& source, const QUrl& target) const; Q_INVOKABLE bool copyFile(const QUrl& source, const QUrl& target, bool overwrite) const; |