Update logic to check for tqtc- based project names


Also includes a bugfix for parent selection where the correct
parent is selected in logic, but the wrong parent is used in practice.

Change-Id: I44054a3120b129133cf61732f9149bd3921b21f5
Reviewed-by: Daniel Smith <Daniel.Smith@qt.io>
commit0e51f20b502eae2fc61f751557f08f5649b909e8
parent4a9dab5778104d12180ea849d3b126009fc9b794
authorDaniel Smith <daniel.smith@qt.io>
committerDaniel Smith <daniel.smith@qt.io>
commit timeMon, 15 Jan 2024 09:21:10 +0100