diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2021-12-13 14:42:14 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-12-24 05:30:29 +0000 |
commit | 1253a42ed3adee6bb7c67c38257e2c3b43fc91cc (patch) | |
tree | 9a6f7fc7f17838dee015f39e7bd04adf64149213 /src/quicklayouts | |
parent | 27ab2a09960870ab27e681e1c3b65d9674032002 (diff) |
Layouts: use qmlWarning for polish loops
This shows the exact location of the affected layout.
Change-Id: I5343de642ecca00f2179269b6123da905a246b9c
Reviewed-by: Oliver Eftevaag <oliver.eftevaag@qt.io>
(cherry picked from commit 48683c5adfed4ce1612ac1143a92fdc5e75e4d35)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src/quicklayouts')
-rw-r--r-- | src/quicklayouts/qquicklayout.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quicklayouts/qquicklayout.cpp b/src/quicklayouts/qquicklayout.cpp index 3fdbd78471..6477751343 100644 --- a/src/quicklayouts/qquicklayout.cpp +++ b/src/quicklayouts/qquicklayout.cpp @@ -813,7 +813,7 @@ void QQuickLayout::invalidate(QQuickItem * /*childItem*/) qCDebug(lcQuickLayouts) << "QQuickLayout::invalidate(), polish()"; polish(); } else { - qWarning() << "Qt Quick Layouts: Polish loop detected. Aborting after two iterations."; + qmlWarning(this) << "Qt Quick Layouts: Polish loop detected. Aborting after two iterations."; } } } |