diff options
author | Alexandru Croitor <alexandru.croitor@qt.io> | 2017-01-23 12:31:37 +0100 |
---|---|---|
committer | Alexandru Croitor <alexandru.croitor@qt.io> | 2017-01-23 11:37:05 +0000 |
commit | 4bda726fbd32896dd00f2d229c3f08453d32f29f (patch) | |
tree | 3978ea4735f6c7f53a59810c2bb2e697e7ccf3f5 | |
parent | 4e91c0f1744288df752809e2ff1ced753dbb6b4b (diff) |
Fix compiling with Qt 5.5.1
QDebug::verbosity was added in Qt 5.6, and this causes
failures when compiling with Qt 5.5.1.
Change-Id: I02dfc69dbbbf8088b4400cc227bc2b4644bc26fb
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
-rw-r--r-- | ApiExtractor/abstractmetalang.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ApiExtractor/abstractmetalang.cpp b/ApiExtractor/abstractmetalang.cpp index 4b7e70b41..b593537c0 100644 --- a/ApiExtractor/abstractmetalang.cpp +++ b/ApiExtractor/abstractmetalang.cpp @@ -1227,12 +1227,16 @@ QDebug operator<<(QDebug d, const AbstractMetaFunction *af) d.nospace(); d << "AbstractMetaFunction("; if (af) { +#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0) if (d.verbosity() > 2) { af->formatDebugVerbose(d); } else { +#endif d << "signature="; formatMetaFunctionBrief(d, af); +#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0) } +#endif } else { d << '0'; } @@ -2743,9 +2747,11 @@ QDebug operator<<(QDebug d, const AbstractMetaClass *ac) for (int i = 0; i < count; ++i) { if (i) d << ", "; +#if QT_VERSION >= QT_VERSION_CHECK(5, 6, 0) if (d.verbosity() > 2) d << functions.at(i); else +#endif formatMetaFunctionBrief(d, functions.at(i)); } d << ')'; |