Refactor helper functions in operation parameters test


After getObjectValue() was introduced, two other helper functions
could use it in their implementation.
Do it to reduce code duplication. This requires moving the
getObjectValue() function up.
As a drive-by, mark these functions as static.

Change-Id: Ib5516e5055c482886e411a798bae553640869f28
Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
commit55a1ca297a659d103e6a8ab0543cc03ffa5bcfe5
parent3730f4e9fafb296d3ad5e2483005998c1fd0cdbe
authorIvan Solovev <ivan.solovev@qt.io>
committerIvan Solovev <ivan.solovev@qt.io>
commit timeThu, 25 Sep 2025 16:20:49 +0200