diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-04-25 14:57:12 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2019-04-30 11:27:08 +0000 |
commit | f332f2e8e66a5fa67b302893a13f0be3687ccc38 (patch) | |
tree | 282dbf2b6845b3c90d51c345ecbd55562a4814f9 /sources/shiboken2/ApiExtractor/reporthandler.h | |
parent | d79bb0f4877bd35af99f8ec97aa91ca56207bc23 (diff) |
shiboken: Refactor progress message output handling
In class ReportHandler, replace the step counting by a simple pair of
startProgress()/endProgress() functions that check for warnings and
print the appropriate terminator. Module name and timestamp are now
also printed.
Add a few more messages and give proper names to the generators.
Change-Id: I92b4ef2854b824fbba3d371417edc1f88561a2cb
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken2/ApiExtractor/reporthandler.h')
-rw-r--r-- | sources/shiboken2/ApiExtractor/reporthandler.h | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/sources/shiboken2/ApiExtractor/reporthandler.h b/sources/shiboken2/ApiExtractor/reporthandler.h index 8f97cb506..08ab7d23c 100644 --- a/sources/shiboken2/ApiExtractor/reporthandler.h +++ b/sources/shiboken2/ApiExtractor/reporthandler.h @@ -48,15 +48,8 @@ public: static int suppressedCount(); - template <typename T> - static void setProgressReference(T collection) - { - setProgressReference(collection.count()); - } - - static void setProgressReference(int max); - - static void progress(const QString &str, ...); + static void startProgress(const QByteArray &str); + static void endProgress(); static bool isDebug(DebugLevel level) { return debugLevel() >= level; } |