forked from quickshell/quickshell
refactor(wayland): seperate cmake files for modularity
This commit is contained in:
parent
5bbd0333ef
commit
c6dde9ca9d
28 changed files with 32 additions and 33 deletions
|
@ -1,24 +0,0 @@
|
|||
#pragma once
|
||||
|
||||
#include <qdir.h>
|
||||
#include <qfilesystemwatcher.h>
|
||||
#include <qobject.h>
|
||||
|
||||
class FiletreeWatcher: public QObject {
|
||||
Q_OBJECT;
|
||||
|
||||
public:
|
||||
explicit FiletreeWatcher(QObject* parent = nullptr);
|
||||
|
||||
void addPath(const QString& path);
|
||||
|
||||
signals:
|
||||
void fileChanged(const QString& path);
|
||||
|
||||
private slots:
|
||||
void onDirectoryChanged(const QString& path);
|
||||
void onFileChanged(const QString& path);
|
||||
|
||||
private:
|
||||
QFileSystemWatcher watcher;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue