Files
z-bar-qt/Plugins/ZShell/alignauditor.cpp

27 lines
498 B
C++

#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