diff options
author | Shawn Rutledge <shawn.rutledge@qt.io> | 2021-02-15 11:53:00 +0100 |
---|---|---|
committer | Shawn Rutledge <shawn.rutledge@qt.io> | 2021-02-15 13:31:40 +0000 |
commit | a8685fdb4d57c0ba36d80c395c2ae878595f04da (patch) | |
tree | 6b616c2d4f419de918ff547d1ae29bcaae7e99a0 /src/quick/items/qquicktextcontrol.cpp | |
parent | b770d54c6b71fb7a1084a5a2b7994ec8472716a0 (diff) |
Rename DBG_* logging categories in Qt Quick
We prefer camelCase rather than SHOUTING for module constants.
It fits well to have logging categories as constants that start with lc.
That has become conventional in various modules, and we've been using
that convention already for some time when defining new logging categories.
Now we finish renaming the Qt Quick ones, ahead of a refactoring which
will result in moving some of them around.
Pick-to: 6.1
Change-Id: I47003b9e525fe70d35dbd2450d03379b52d67c1d
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/quick/items/qquicktextcontrol.cpp')
-rw-r--r-- | src/quick/items/qquicktextcontrol.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/quick/items/qquicktextcontrol.cpp b/src/quick/items/qquicktextcontrol.cpp index 6c0ad0ae7d..a0281d1fb2 100644 --- a/src/quick/items/qquicktextcontrol.cpp +++ b/src/quick/items/qquicktextcontrol.cpp @@ -77,7 +77,7 @@ const int textCursorWidth = 1; QT_BEGIN_NAMESPACE -Q_DECLARE_LOGGING_CATEGORY(DBG_HOVER_TRACE) +Q_DECLARE_LOGGING_CATEGORY(lcHoverTrace) // could go into QTextCursor... static QTextLine currentTextLine(const QTextCursor &cursor) @@ -1501,14 +1501,14 @@ void QQuickTextControlPrivate::hoverEvent(QHoverEvent *e, const QPointF &pos) if (hoveredLink != link) { hoveredLink = link; emit q->linkHovered(link); - qCDebug(DBG_HOVER_TRACE) << q << e->type() << pos << "hoveredLink" << hoveredLink; + qCDebug(lcHoverTrace) << q << e->type() << pos << "hoveredLink" << hoveredLink; } else { QTextBlock block = q->blockWithMarkerAt(pos); if (block.isValid() != hoveredMarker) emit q->markerHovered(block.isValid()); hoveredMarker = block.isValid(); if (hoveredMarker) - qCDebug(DBG_HOVER_TRACE) << q << e->type() << pos << "hovered marker" << int(block.blockFormat().marker()) << block.text(); + qCDebug(lcHoverTrace) << q << e->type() << pos << "hovered marker" << int(block.blockFormat().marker()) << block.text(); } } |