QCanvasPath: merge reserve overloads


Use -1 as the default value of commandsDataSize, which mirrors the
constructor and matches the implementation of the single-parameter
overload.

Addresses header review comment.

Pick-to: 6.12
Task-number: QTBUG-146286
Change-Id: I6bf196b48c87a5e7e9aea49cdc3b61cc90518139
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
commiteaf630c0318a220f46c4248562d93b541c041ba1
parentb77017b58264b8df35b4c8bc54ab651b7a8d6598
authorVolker Hilsheimer <volker.hilsheimer@qt.io>
committerVolker Hilsheimer <volker.hilsheimer@qt.io>
commit timeTue, 1 Sep 2026 14:15:09 +0000