mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-30 02:17:21 +02:00
CmdBurndown
- Now composes title from CLI instead of Parser.
This commit is contained in:
parent
283a1aa8ef
commit
506d36d74e
1 changed files with 4 additions and 17 deletions
|
@ -209,23 +209,10 @@ Chart::Chart (char type)
|
||||||
_fix_rate = 0.0;
|
_fix_rate = 0.0;
|
||||||
|
|
||||||
// Set the title.
|
// Set the title.
|
||||||
_title = "(";
|
std::vector <std::string> words = context.cli.getWords ();
|
||||||
std::vector <Tree*>::iterator i;
|
std::string filter;
|
||||||
for (i = context.parser.tree ()->_branches.begin (); i != context.parser.tree ()->_branches.end (); ++i)
|
join (filter, " ", words);
|
||||||
{
|
_title = "(" + filter + ")";
|
||||||
if (! (*i)->hasTag ("BINARY") &&
|
|
||||||
! (*i)->hasTag ("RC") &&
|
|
||||||
! (*i)->hasTag ("CONFIG") &&
|
|
||||||
! (*i)->hasTag ("CMD") &&
|
|
||||||
! (*i)->hasTag ("TERMINATOR"))
|
|
||||||
{
|
|
||||||
if (_title.length () > 1)
|
|
||||||
_title += " ";
|
|
||||||
|
|
||||||
_title += (*i)->attribute ("raw");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
_title += ")";
|
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue