tooltip for macro definitions.

This commit is contained in:
Roberto Raggi
2008-12-09 15:23:47 +01:00
parent 4a552ead9f
commit 20e36cc364
6 changed files with 73 additions and 22 deletions

View File

@@ -604,28 +604,29 @@ void pp::operator()(const QByteArray &source, QByteArray *result)
m->definition.constEnd(),
result);
m->hidden = false;
if (client)
client->stopExpandingMacro(_dot->offset, *m);
m->hidden = false;
continue;
} else {
QByteArray tmp;
m->hidden = true;
if (client)
client->startExpandingMacro(identifierToken->offset,
*m, spell);
m->hidden = true;
expand(m->definition.constBegin(),
m->definition.constEnd(),
&tmp);
m->hidden = false;
if (client)
client->stopExpandingMacro(_dot->offset, *m);
m->hidden = false;
m = 0; // reset the active the macro
pushState(createStateFromSource(tmp));