Add BaseApi::activeServer() method
The method returns the index of the active server for a given
operation or a std::nullopt if the operation does not exist.
Use the new method in tests instead of directly accessing the
m_serverIndices member varible.
Found in API review.
Task-number: QTBUG-142269
Pick-to: 6.11
Change-Id: I70a68c47a2fbe83a67c91cede6244102db01c1a4
Reviewed-by: Tatiana Borisova <tatiana.borisova@qt.io>
| commit | e994865dfa5c6df7eeffe60004943cdc421ff03a |
| parent | df0a13aa2aaa3e04dbf387b3a1a5f75436871670 |
| author | Ivan Solovev <ivan.solovev@qt.io> |
| committer | Ivan Solovev <ivan.solovev@qt.io> |
| commit time | Fri, 12 Dec 2025 10:10:02 +0100 |