25 lines
299 B
C++
25 lines
299 B
C++
#pragma once
|
|
|
|
#include <qobject.h>
|
|
|
|
namespace ZShell::settings {
|
|
|
|
class ChangeBatcher : public QObject {
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ChangeBatcher(QObject* parent = nullptr);
|
|
|
|
void dirty();
|
|
|
|
signals:
|
|
void dirtied();
|
|
|
|
private:
|
|
bool m_dirty;
|
|
|
|
void flush();
|
|
};
|
|
|
|
} // namespace ZShell::settings
|