diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-01 15:31:27 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-09-01 15:31:27 +1000 |
| commit | d76c799dd22a44621b557564ed9606e04ba40e34 (patch) | |
| tree | ea9dc55c4ef52a94e34f818003727b4170b9103b /plugin/src/Caelestia/filesystemmodel.hpp | |
| parent | cmake: more compiler warnings (diff) | |
| download | caelestia-shell-d76c799dd22a44621b557564ed9606e04ba40e34.tar.gz caelestia-shell-d76c799dd22a44621b557564ed9606e04ba40e34.tar.bz2 caelestia-shell-d76c799dd22a44621b557564ed9606e04ba40e34.zip | |
plugin: fix warnings + const stuff
Diffstat (limited to 'plugin/src/Caelestia/filesystemmodel.hpp')
| -rw-r--r-- | plugin/src/Caelestia/filesystemmodel.hpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/plugin/src/Caelestia/filesystemmodel.hpp b/plugin/src/Caelestia/filesystemmodel.hpp index 42027e7..9667beb 100644 --- a/plugin/src/Caelestia/filesystemmodel.hpp +++ b/plugin/src/Caelestia/filesystemmodel.hpp @@ -10,16 +10,16 @@ class FileSystemEntry : public QObject { Q_OBJECT - QML_ELEMENT; - QML_UNCREATABLE("FileSystemEntry instances can only be retrieved from a FileSystemModel"); + QML_ELEMENT + QML_UNCREATABLE("FileSystemEntry instances can only be retrieved from a FileSystemModel") - Q_PROPERTY(QString path READ path CONSTANT); - Q_PROPERTY(QString relativePath READ relativePath CONSTANT); - Q_PROPERTY(QString name READ name CONSTANT); - Q_PROPERTY(QString parentDir READ parentDir CONSTANT); - Q_PROPERTY(qint64 size READ size CONSTANT); - Q_PROPERTY(bool isDir READ isDir CONSTANT); - Q_PROPERTY(bool isImage READ isImage CONSTANT); + Q_PROPERTY(QString path READ path CONSTANT) + Q_PROPERTY(QString relativePath READ relativePath CONSTANT) + Q_PROPERTY(QString name READ name CONSTANT) + Q_PROPERTY(QString parentDir READ parentDir CONSTANT) + Q_PROPERTY(qint64 size READ size CONSTANT) + Q_PROPERTY(bool isDir READ isDir CONSTANT) + Q_PROPERTY(bool isImage READ isImage CONSTANT) public: explicit FileSystemEntry(const QString& path, const QString& relativePath, QObject* parent = nullptr) @@ -53,14 +53,14 @@ private: }; class FileSystemModel : public QAbstractListModel { - Q_OBJECT; - QML_ELEMENT; + Q_OBJECT + QML_ELEMENT - Q_PROPERTY(QString path READ path WRITE setPath NOTIFY pathChanged); - Q_PROPERTY(bool recursive READ recursive WRITE setRecursive NOTIFY recursiveChanged); - Q_PROPERTY(Filter filter READ filter WRITE setFilter NOTIFY filterChanged); + Q_PROPERTY(QString path READ path WRITE setPath NOTIFY pathChanged) + Q_PROPERTY(bool recursive READ recursive WRITE setRecursive NOTIFY recursiveChanged) + Q_PROPERTY(Filter filter READ filter WRITE setFilter NOTIFY filterChanged) - Q_PROPERTY(QList<FileSystemEntry*> entries READ entries NOTIFY entriesChanged); + Q_PROPERTY(QList<FileSystemEntry*> entries READ entries NOTIFY entriesChanged) public: enum Roles { |