Core: Let callers specify which part of an options page to pre-select

... and use it for the "Manage kits" functionality.
We will make use of this in other contexts as well.

Task-number: QTCREATORBUG-25077
Change-Id: I79c622075b9385b060aed73534d39acc23fd765e
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Christian Kandeler
2024-01-18 17:43:33 +01:00
parent b9cce1a0ba
commit 3fc1b5f57b
8 changed files with 41 additions and 18 deletions

View File

@@ -914,7 +914,7 @@ public:
while (treeItem) {
const Id kitId = Id::fromSetting(treeItem->data(0, KitIdRole));
if (kitId.isValid()) {
setSelectectKitId(kitId);
Core::setPreselectedOptionsPageItem(Constants::KITS_SETTINGS_PAGE_ID, kitId);
break;
}
treeItem = treeItem->parent();