mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2026-07-08 13:08:29 +02:00
Replace IPathMatcher stuff with Filter
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
parent
d41db5253e
commit
d7eddd3773
22 changed files with 66 additions and 183 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#include <QDir>
|
||||
#include <QFileSystemWatcher>
|
||||
#include "pathmatcher/IPathMatcher.h"
|
||||
#include "Filter.h"
|
||||
|
||||
class RecursiveFileSystemWatcher : public QObject {
|
||||
Q_OBJECT
|
||||
|
|
@ -16,7 +16,7 @@ class RecursiveFileSystemWatcher : public QObject {
|
|||
void setWatchFiles(bool watchFiles);
|
||||
bool watchFiles() const { return m_watchFiles; }
|
||||
|
||||
void setMatcher(IPathMatcher::Ptr matcher) { m_matcher = matcher; }
|
||||
void setMatcher(Filter matcher) { m_matcher = std::move(matcher); }
|
||||
|
||||
QStringList files() const { return m_files; }
|
||||
|
||||
|
|
@ -32,7 +32,7 @@ class RecursiveFileSystemWatcher : public QObject {
|
|||
QDir m_root;
|
||||
bool m_watchFiles = false;
|
||||
bool m_isEnabled = false;
|
||||
IPathMatcher::Ptr m_matcher;
|
||||
Filter m_matcher;
|
||||
|
||||
QFileSystemWatcher* m_watcher;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue