Show locator filter descriptions more prominently

- Sort items in the menu.
- Disable items for disabled filters.
- Show a tool tip when hovering over the magnifying glass menu.
- Add descriptions to all filters and make them more consistent.

Change-Id: Ic03e303c50422f9de5dd3c512fe32bbdc958d2ba
Reviewed-by: David Schulz <david.schulz@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
Eike Ziller
2023-03-31 15:49:51 +02:00
parent 4e6877753a
commit 5adb656550
23 changed files with 93 additions and 31 deletions

View File

@@ -92,7 +92,7 @@ void CMakeTargetLocatorFilter::projectListUpdated()
BuildCMakeTargetLocatorFilter::BuildCMakeTargetLocatorFilter()
{
setId("Build CMake target");
setDisplayName(Tr::tr("Build CMake target"));
setDisplayName(Tr::tr("Build CMake Target"));
setDescription(Tr::tr("Builds a target of any open CMake project."));
setDefaultShortcutString("cm");
setPriority(High);
@@ -139,8 +139,8 @@ void BuildCMakeTargetLocatorFilter::accept(const LocatorFilterEntry &selection,
OpenCMakeTargetLocatorFilter::OpenCMakeTargetLocatorFilter()
{
setId("Open CMake target definition");
setDisplayName(Tr::tr("Open CMake target"));
setDescription(Tr::tr("Jumps to the definition of a target of any open CMake project."));
setDisplayName(Tr::tr("Open CMake Target"));
setDescription(Tr::tr("Locates the definition of a target of any open CMake project."));
setDefaultShortcutString("cmo");
setPriority(Medium);
}