diff options
author | Shawn Rutledge <shawn.rutledge@digia.com> | 2014-04-10 15:29:49 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2014-04-15 15:10:15 +0200 |
commit | bcabdfbbe375a0e9872f9be6c9cbd212cebb5ee6 (patch) | |
tree | 0d72b851feea2efaf1cd532e93c3e683fdf5a936 /src/quick/qtquickglobal_p.h | |
parent | 1d0ba990931203dadaa500a86e32bc355c0d9225 (diff) |
Qt Quick: use categorized logging for touch, mouse, focus, and dirty
There was no need to log debug info as warnings; and QTouchEvent has
had a streaming operator for some time, which shows more useful info.
Categorized logging makes all of this debug info available without
rebuilding Qt first and without adding new env variables.
Change-Id: If2f5bab3f9d90c8b72b295c075e7184662d3ead3
Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'src/quick/qtquickglobal_p.h')
-rw-r--r-- | src/quick/qtquickglobal_p.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/quick/qtquickglobal_p.h b/src/quick/qtquickglobal_p.h index f67a08c218..cd4cb61ebb 100644 --- a/src/quick/qtquickglobal_p.h +++ b/src/quick/qtquickglobal_p.h @@ -42,6 +42,8 @@ #ifndef QTQUICKGLOBAL_P_H #define QTQUICKGLOBAL_P_H +#include <QtCore/qloggingcategory.h> + // // W A R N I N G // ------------- @@ -61,6 +63,11 @@ QT_BEGIN_NAMESPACE void QQuick_initializeProviders(); +Q_DECLARE_LOGGING_CATEGORY(DBG_TOUCH) +Q_DECLARE_LOGGING_CATEGORY(DBG_MOUSE) +Q_DECLARE_LOGGING_CATEGORY(DBG_FOCUS) +Q_DECLARE_LOGGING_CATEGORY(DBG_DIRTY) + QT_END_NAMESPACE #endif // QTQUICKGLOBAL_P_H |