summaryrefslogtreecommitdiff
path: root/src/svg/qsvghandler_p.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2017-02-02 09:35:43 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2017-02-02 21:17:21 +0000
commitd45fcac787196bcbbe366c997801d5bcebf1a475 (patch)
treed4802abe2af927f8af4d5594d9c7a074aafaa3c3 /src/svg/qsvghandler_p.h
parent21d2f50f6d84be5dc006135ea726e9d34d47b0e4 (diff)
downloadqtsvg-d45fcac787196bcbbe366c997801d5bcebf1a475.tar.gz
Introduce logging category "qt.svg"
It is then possible to suppress warnings by setting for example QT_LOGGING_RULES to qt.svg.warning=false. This will suppress the warnings floods which are currently produced by faulty theme svg icons on KDE 5 systems. Task-number: QTBUG-52079 Change-Id: I50e3c2e3eab610e182293c8938c6188694eabfb7 Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'src/svg/qsvghandler_p.h')
-rw-r--r--src/svg/qsvghandler_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/svg/qsvghandler_p.h b/src/svg/qsvghandler_p.h
index 32dd059..2c06cb4 100644
--- a/src/svg/qsvghandler_p.h
+++ b/src/svg/qsvghandler_p.h
@@ -54,6 +54,7 @@
#include "QtCore/qxmlstream.h"
#include "QtCore/qhash.h"
#include "QtCore/qstack.h"
+#include <QtCore/QLoggingCategory>
#include "qsvgstyle_p.h"
#include "private/qcssparser_p.h"
#include "qsvggraphics_p.h"
@@ -186,6 +187,8 @@ private:
const bool m_ownsReader;
};
+Q_DECLARE_LOGGING_CATEGORY(lcSvgHandler)
+
QT_END_NAMESPACE
#endif // QSVGHANDLER_P_H