Bug 422434 - compile error: pressurecurvewidget.cpp missing include
Summary: compile error: pressurecurvewidget.cpp missing include
Status: RESOLVED FIXED
Alias: None
Product: wacomtablet
Classification: Plasma
Component: general (show other bugs)
Version: 3.2.0
Platform: Slackware Linux
: NOR major
Target Milestone: ---
Assignee: Valerii Malov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-06-03 21:53 UTC by Henry Pfeil
Modified: 2020-06-04 14:58 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Henry Pfeil 2020-06-03 21:53:42 UTC
SUMMARY
pressurecurvewidget.cpp missing "#include <QPainterPath>"
wacomtablet-3.2.0/src/kcmodule/pressurecurvewidget.cpp

STEPS TO REPRODUCE
1. g++ -o pressurecurvewidget pressurecurvewidget.cpp
2. add "#include <QPainterPath>" just after "#include <QPainter>"
3. no compile error

OBSERVED RESULT
Compile error: ‘QPainterPath curvePath’ has incomplete type and cannot be defined
pressurecurvewidget.cpp:185
pressurecurvewidget.cpp:190

EXPECTED RESULT
wacomtablet-3.2.0/src/kcmodule/pressurecurvewidget.cpp no compile error

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 5.18.5
KDE Frameworks Version: n/a
Qt Version: 5.15.0

ADDITIONAL INFORMATION
Fix: add "#include <QPainterPath>" just after "#include <QPainter>"
Comment 1 Henry Pfeil 2020-06-04 04:57:48 UTC
Addendum: see also
applications-extra/calligraplan-3.2.2/src/libs/ui/kptganttitemdelegate.cpp

Same compile error, also fixed by adding #include <QPainterPath>

kptganttitemdelegate.cpp:550, 562, 583, 673, 693, 705, etc.
‘QPainterPath path’ has incomplete type and cannot be defined
‘QPainterPath p’ has initializer but incomplete type