The code was broken in both places where the warning was signalled. We should let KDAB know about the KDChart issue. BUG: 337796 (cherry picked from commit 0d8b593a)