Bug 422434

Summary: compile error: pressurecurvewidget.cpp missing include
Product: [Unmaintained] wacomtablet Reporter: Henry Pfeil <hpfeil>
Component: generalAssignee: Valerii Malov <jazzvoid>
Status: RESOLVED FIXED    
Severity: major    
Priority: NOR    
Version First Reported In: 3.2.0   
Target Milestone: ---   
Platform: Slackware   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

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