From 8b1f2be27be18459ba2c8f4d675b5bf36f7d2307 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Mon, 1 Sep 2025 17:41:26 +1000 Subject: internal: format cpp --- plugin/src/Caelestia/filesystemmodel.hpp | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) (limited to 'plugin/src/Caelestia/filesystemmodel.hpp') diff --git a/plugin/src/Caelestia/filesystemmodel.hpp b/plugin/src/Caelestia/filesystemmodel.hpp index 77a5826..e12b26a 100644 --- a/plugin/src/Caelestia/filesystemmodel.hpp +++ b/plugin/src/Caelestia/filesystemmodel.hpp @@ -1,12 +1,12 @@ #pragma once -#include -#include #include -#include -#include #include +#include +#include #include +#include +#include class FileSystemEntry : public QObject { Q_OBJECT @@ -23,7 +23,10 @@ class FileSystemEntry : public QObject { public: explicit FileSystemEntry(const QString& path, const QString& relativePath, QObject* parent = nullptr) - : QObject(parent), m_fileInfo(QFileInfo(path)), m_path(path), m_relativePath(relativePath) {} + : QObject(parent) + , m_fileInfo(QFileInfo(path)) + , m_path(path) + , m_relativePath(relativePath) {} QString path() const { return m_path; }; QString relativePath() const { return m_relativePath; }; @@ -71,10 +74,12 @@ public: Q_ENUM(Filter) explicit FileSystemModel(QObject* parent = nullptr) - : QAbstractListModel(parent), m_recursive(true), m_filter(NoFilter) { - connect(&m_watcher, &QFileSystemWatcher::directoryChanged, this, &FileSystemModel::watchDirIfRecursive); - connect(&m_watcher, &QFileSystemWatcher::directoryChanged, this, &FileSystemModel::updateEntries); - } + : QAbstractListModel(parent) + , m_recursive(true) + , m_filter(NoFilter) { + connect(&m_watcher, &QFileSystemWatcher::directoryChanged, this, &FileSystemModel::watchDirIfRecursive); + connect(&m_watcher, &QFileSystemWatcher::directoryChanged, this, &FileSystemModel::updateEntries); + } int rowCount(const QModelIndex& parent = QModelIndex()) const override; QVariant data(const QModelIndex& index, int role = Qt::DisplayRole) const override; -- cgit v1.2.3-freya