Mark polygon/path leaf-classes as final


These private leaf classes are not intended to be inherited further.
Marking them final makes this clear, and should suppress the Clang
static analyzer warning about calling a virtual function in a
constructor ("method call during construction bypasses virtual
dispatch").

Amends b2edd51351af86381e22e76d139e983dd94d32c5

Task-number: QTBUG-144952
Pick-to: 6.11 6.10 6.8
Change-Id: I9c0fc1238fb33f6098a1aef0c1806b9507e404dc
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
commit9f38019c1e65258db898c3d2b5bfda0186b30b88
parenta813dce67b0693fabd8997195705017dbbe4462c
authorJuha Vuolle <juha.vuolle@qt.io>
committerJuha Vuolle <juha.vuolle@qt.io>
commit timeTue, 7 Apr 2026 12:56:18 +0200