summaryrefslogtreecommitdiffstats
path: root/examples/widgets/painting/deform
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2021-10-12 17:39:00 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2021-10-16 12:52:29 +0200
commitbb56560b6b323933773608d006fb282693ea6106 (patch)
tree1661fbb641ce72275cb5e2cc15c1f28e218ba578 /examples/widgets/painting/deform
parenta875503d9e001a05eb3c0998f6c1292f0fefc4e1 (diff)
Polish the painting/affine example
- Use member initialization - Remove C-style casts - Add space around operators - Use qsizetype for list indexes - Remove commented out debugging code Task-number: QTBUG-97095 Pick-to: 6.2 Change-Id: I11a17fa6e7f17968367a57291d83ee6fba731a34 Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org> Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'examples/widgets/painting/deform')
-rw-r--r--examples/widgets/painting/deform/pathdeform.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/widgets/painting/deform/pathdeform.cpp b/examples/widgets/painting/deform/pathdeform.cpp
index acf0191260..998b6a53a1 100644
--- a/examples/widgets/painting/deform/pathdeform.cpp
+++ b/examples/widgets/painting/deform/pathdeform.cpp
@@ -481,7 +481,7 @@ void PathDeformRenderer::timerEvent(QTimerEvent *e)
void PathDeformRenderer::mousePressEvent(QMouseEvent *e)
{
- if (m_show_doc) {
+ if (m_showDoc) {
setDescriptionEnabled(false);
return;
}