ExtensionManager: Hide the filter combobox in QtC 15

There is not much data to filter by, yet, in QtC 15. Therefore, we hide
the filter combobox for now.

Fixes: QTCREATORBUG-31751
Change-Id: I1acc14a27c57ddb432efe614d0c2a0817a57b8b2
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
Alessandro Portale
2024-10-04 13:41:11 +02:00
parent 927bd79488
commit 9eadb18df0

View File

@@ -525,6 +525,7 @@ ExtensionsBrowser::ExtensionsBrowser(ExtensionsModel *model, QWidget *parent)
Tr::tr("Filter by: %1"));
d->filterChooser->addItems(Utils::transform(SortFilterProxyModel::filterOptions(),
&SortFilterProxyModel::FilterOption::displayName));
d->filterChooser->hide(); // TODO: Unhide when ready. See QTCREATORBUG-31751
d->sortChooser = new OptionChooser(":/extensionmanager/images/sort.png", Tr::tr("Sort by: %1"));
d->sortChooser->addItems(Utils::transform(SortFilterProxyModel::sortOptions(),
@@ -556,11 +557,11 @@ ExtensionsBrowser::ExtensionsBrowser(ExtensionsModel *model, QWidget *parent)
customMargins(0, VPaddingM, extraListViewWidth() + gapSize, VPaddingM),
},
Row {
d->filterChooser,
Space(HGapS),
d->sortChooser,
d->filterChooser,
st,
settingsToolButton,
spacing(HGapS),
customMargins(0, 0, extraListViewWidth() + gapSize, 0),
},
d->extensionsView,