ide: Assist tips improved

This commit is contained in:
Mirek Fidler 2025-11-28 11:04:13 +01:00
parent 852c88210e
commit d68d8990e8
4 changed files with 13 additions and 7 deletions

View file

@ -447,10 +447,11 @@ Vector<ItemTextPart> ParsePretty(const String& name, const String& signature, in
Image CxxIcon(int kind);
String SignatureQtf(const String& name, const String& pretty, int pari)
String SignatureQtf(const String& name, const String& pretty, const String& nest, int pari)
{
String qtf = "[%00-00K ";
Vector<ItemTextPart> n = ParsePretty(name, pretty);
String ns = nest;
for(int i = 0; i < n.GetCount(); i++) {
ItemTextPart& p = n[i];
qtf << "[";
@ -477,6 +478,10 @@ String SignatureQtf(const String& name, const String& pretty, int pari)
break;
}
qtf << ' ';
if(ns.GetCount() && p.type == ITEM_NAME) {
qtf << "[@b \1" << ns << "::\1]";
ns.Clear();
}
qtf << '\1' << pretty.Mid(p.pos, p.len) << '\1';
qtf << ']';
}