mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-21 06:45:39 -06:00
ide: Assist tips improved
This commit is contained in:
parent
852c88210e
commit
d68d8990e8
4 changed files with 13 additions and 7 deletions
|
|
@ -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 << ']';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue