diff options
author | Christian Kandeler <christian.kandeler@digia.com> | 2012-11-09 09:45:27 +0100 |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@digia.com> | 2012-11-09 10:42:46 +0100 |
commit | c4958b47251bb22bf452d2c230ce6eb071c2b861 (patch) | |
tree | ab7bc93f348de18018b2188c52167220e5721408 /src/app/qbs/consoleprogressobserver.h | |
parent | d46dfff906a0bf81925042a8e23a0a3cd68083f4 (diff) |
Allow to explicitly tell the progress observer a task is finished.
This is useful for tasks for which we do not know the exact effort in
advance.
Change-Id: Ia8bc2aea9e25fee4b1f1afa1310f34a3239e37d9
Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
Diffstat (limited to 'src/app/qbs/consoleprogressobserver.h')
-rw-r--r-- | src/app/qbs/consoleprogressobserver.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/app/qbs/consoleprogressobserver.h b/src/app/qbs/consoleprogressobserver.h index 23329f13a..6141a892c 100644 --- a/src/app/qbs/consoleprogressobserver.h +++ b/src/app/qbs/consoleprogressobserver.h @@ -38,6 +38,7 @@ class ConsoleProgressObserver : public ProgressObserver void initialize(const QString &task, int max); void setProgressValue(int value); int progressValue() { return m_value; } + int maximum() const { return m_maximum; } bool canceled() const { return false; } void eraseCurrentPercentageString(); |