From 32f090c2f072b847d6e80374ff6745d37bceb76d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20W=C3=A4ckerlin?= Date: Tue, 31 Jan 2017 17:32:07 +0000 Subject: [PATCH] better progress indicator --- src/commands.hxx | 193 +++++++++++++++++++++++++++++----------------- src/webrunner.cxx | 2 +- 2 files changed, 124 insertions(+), 71 deletions(-) diff --git a/src/commands.hxx b/src/commands.hxx index 208045e..5d7bad9 100644 --- a/src/commands.hxx +++ b/src/commands.hxx @@ -117,6 +117,9 @@ class Command: public QObject { log(QString(" FAILED[")+demangle(typeid(e).name())+"]: "+e.what()); throw e; } + virtual int steps(Script* parent) { + return 1; + } void line(int linenr) { _line = linenr; } @@ -187,6 +190,8 @@ class Command: public QObject { QCoreApplication::processEvents(QEventLoop::AllEvents, 100); } protected: + std::shared_ptr