diff options
| author | Serg Podtynnyi <[email protected]> | 2023-02-04 00:14:53 +0700 |
|---|---|---|
| committer | Serg Podtynnyi <[email protected]> | 2023-02-05 12:45:38 +0700 |
| commit | 38c34eeca315c7be58e65d4d3fb72aaf7b866719 (patch) | |
| tree | 886e53f20c9c43edc3eb7fe04789716a9bc98ebe /src/kitemviews/private/kdirectorycontentscounterworker.h | |
| parent | ffff8af851e3a386c44438337779d0ce7ca98a61 (diff) | |
Add clang-format and format code as in Frameworks
Diffstat (limited to 'src/kitemviews/private/kdirectorycontentscounterworker.h')
| -rw-r--r-- | src/kitemviews/private/kdirectorycontentscounterworker.h | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/kitemviews/private/kdirectorycontentscounterworker.h b/src/kitemviews/private/kdirectorycontentscounterworker.h index 48a2d1ff9..6bbe099a5 100644 --- a/src/kitemviews/private/kdirectorycontentscounterworker.h +++ b/src/kitemviews/private/kdirectorycontentscounterworker.h @@ -17,11 +17,7 @@ class KDirectoryContentsCounterWorker : public QObject Q_OBJECT public: - enum Option { - NoOptions = 0x0, - CountHiddenFiles = 0x1, - CountDirectoriesOnly = 0x2 - }; + enum Option { NoOptions = 0x0, CountHiddenFiles = 0x1, CountDirectoriesOnly = 0x2 }; Q_DECLARE_FLAGS(Options, Option) struct CountResult { @@ -32,7 +28,7 @@ public: long size; }; - explicit KDirectoryContentsCounterWorker(QObject* parent = nullptr); + explicit KDirectoryContentsCounterWorker(QObject *parent = nullptr); /** * Counts the items inside the directory \a path using the options @@ -40,13 +36,13 @@ public: * * @return The number of items. */ - static CountResult subItemsCount(const QString& path, Options options); + static CountResult subItemsCount(const QString &path, Options options); Q_SIGNALS: /** * Signals that the directory \a path contains \a count items and optionally the size of its content. */ - void result(const QString& path, int count, long size); + void result(const QString &path, int count, long size); public Q_SLOTS: /** @@ -56,7 +52,7 @@ public Q_SLOTS: // Note that the full type name KDirectoryContentsCounterWorker::Options // is needed here. Just using 'Options' is OK for the compiler, but // confuses moc. - void countDirectoryContents(const QString& path, KDirectoryContentsCounterWorker::Options options); + void countDirectoryContents(const QString &path, KDirectoryContentsCounterWorker::Options options); }; Q_DECLARE_METATYPE(KDirectoryContentsCounterWorker::Options) |
