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/kdirectorycontentscounter.h | |
| parent | ffff8af851e3a386c44438337779d0ce7ca98a61 (diff) | |
Add clang-format and format code as in Frameworks
Diffstat (limited to 'src/kitemviews/private/kdirectorycontentscounter.h')
| -rw-r--r-- | src/kitemviews/private/kdirectorycontentscounter.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/kitemviews/private/kdirectorycontentscounter.h b/src/kitemviews/private/kdirectorycontentscounter.h index 6d3d1f3c1..f74565b73 100644 --- a/src/kitemviews/private/kdirectorycontentscounter.h +++ b/src/kitemviews/private/kdirectorycontentscounter.h @@ -21,7 +21,7 @@ class KDirectoryContentsCounter : public QObject Q_OBJECT public: - explicit KDirectoryContentsCounter(KFileItemModel* model, QObject* parent = nullptr); + explicit KDirectoryContentsCounter(KFileItemModel *model, QObject *parent = nullptr); ~KDirectoryContentsCounter() override; /** @@ -35,40 +35,40 @@ public: * Uses a cache internally to speed up first result, * but emit again result when the cache was updated */ - void scanDirectory(const QString& path); + void scanDirectory(const QString &path); Q_SIGNALS: /** * Signals that the directory \a path contains \a count items of size \a * Size calculation depends on parameter DetailsModeSettings::recursiveDirectorySizeLimit */ - void result(const QString& path, int count, long size); + void result(const QString &path, int count, long size); - void requestDirectoryContentsCount(const QString& path, KDirectoryContentsCounterWorker::Options options); + void requestDirectoryContentsCount(const QString &path, KDirectoryContentsCounterWorker::Options options); private Q_SLOTS: - void slotResult(const QString& path, int count, long size); - void slotDirWatchDirty(const QString& path); + void slotResult(const QString &path, int count, long size); + void slotDirWatchDirty(const QString &path); void slotItemsRemoved(); private: - void startWorker(const QString& path); + void startWorker(const QString &path); private: - KFileItemModel* m_model; + KFileItemModel *m_model; // Used as FIFO queues. std::list<QString> m_priorityQueue; std::list<QString> m_queue; - static QThread* m_workerThread; + static QThread *m_workerThread; - KDirectoryContentsCounterWorker* m_worker; + KDirectoryContentsCounterWorker *m_worker; bool m_workerIsBusy; - KDirWatch* m_dirWatcher; - QSet<QString> m_watchedDirs; // Required as sadly KDirWatch does not offer a getter method - // to get all watched directories. + KDirWatch *m_dirWatcher; + QSet<QString> m_watchedDirs; // Required as sadly KDirWatch does not offer a getter method + // to get all watched directories. }; #endif |
