feat: initial commit for pixel-snapping components and helpers
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
#include "alignauditor.hpp"
|
||||
|
||||
#include <QTimer>
|
||||
|
||||
namespace ZShell {
|
||||
|
||||
Options AlignAuditor::options() const {
|
||||
Options o;
|
||||
o.outputPath = m_outputPath;
|
||||
o.paintedOnly = m_paintedOnly;
|
||||
o.includeInherited = m_includeInherited;
|
||||
o.tolerance = m_tolerance;
|
||||
return o;
|
||||
}
|
||||
|
||||
int AlignAuditor::run() {
|
||||
m_lastCount = ZShell::run(options());
|
||||
emit finished(m_lastCount);
|
||||
return m_lastCount;
|
||||
}
|
||||
|
||||
void AlignAuditor::runLater() {
|
||||
QTimer::singleShot(m_delayMs, this, [this] { run(); });
|
||||
}
|
||||
|
||||
} // namespace ZShell
|
||||
Reference in New Issue
Block a user