Fix manual test linking (2dpainting_port)


2dpainting_port links against OpenGLWidgets unconditionally. Look up
the OpenGLWidgets at module level (as optional), and include the manual
test in build only if found.

Change-Id: I49361ea97b204cccf5567c28680120fafaf9c7fc
Reviewed-by: Kaj Grönholm <kaj.gronholm@qt.io>
commit0460084b42cb864104fa3c4b934b7543f06f302e
parent147ee77518b7db80ff149c625eea7c6ab2fe0373
authorJuha Vuolle <juha.vuolle@qt.io>
committerJuha Vuolle <juha.vuolle@qt.io>
commit timeTue, 5 May 2026 10:38:16 +0000