diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-27 17:17:07 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-27 17:17:07 +1000 |
| commit | 800b5e6515b2d68e589bf2307cd78ce8e059fcba (patch) | |
| tree | 54a0ae79460a440b93d8bd21e0ec6793cc6d2e2a /plugin/src/Caelestia/cutils.hpp | |
| parent | picker: better client detection (diff) | |
| download | caelestia-shell-800b5e6515b2d68e589bf2307cd78ce8e059fcba.tar.gz caelestia-shell-800b5e6515b2d68e589bf2307cd78ce8e059fcba.tar.bz2 caelestia-shell-800b5e6515b2d68e589bf2307cd78ce8e059fcba.zip | |
plugin: saveItem ensure parent dir
Also const everything and format
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 bf7cb22..e50cab0 100644 --- a/plugin/src/Caelestia/cutils.hpp +++ b/plugin/src/Caelestia/cutils.hpp @@ -9,10 +9,10 @@ class CUtils : public QObject { QML_SINGLETON; public: - 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 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; }; |