mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-24 08:56:43 +02:00
View
- Converted 'help' and 'stats' reports to use ViewText. - Modified Column.cpp to omit column headers if blank.
This commit is contained in:
parent
1a833af2a4
commit
fcb711d673
3 changed files with 243 additions and 271 deletions
|
@ -68,7 +68,7 @@ int ViewText::addRow ()
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
void ViewText::set (int row, int col, const std::string& value, Color color)
|
||||
{
|
||||
_data[row][col] = value;
|
||||
_data[row][col] = value;
|
||||
|
||||
if (color.nontrivial ())
|
||||
_color[row][col] = color;
|
||||
|
@ -78,7 +78,7 @@ void ViewText::set (int row, int col, const std::string& value, Color color)
|
|||
void ViewText::set (int row, int col, int value, Color color)
|
||||
{
|
||||
std::string string_value = format (value);
|
||||
_data[row][col] = value;
|
||||
_data[row][col] = string_value;
|
||||
|
||||
if (color.nontrivial ())
|
||||
_color[row][col] = color;
|
||||
|
@ -88,7 +88,7 @@ void ViewText::set (int row, int col, int value, Color color)
|
|||
void ViewText::set (int row, int col, float value, int width, int precision, Color color)
|
||||
{
|
||||
std::string string_value = format ((float)value, width, precision);
|
||||
_data[row][col] = value;
|
||||
_data[row][col] = string_value;
|
||||
|
||||
if (color.nontrivial ())
|
||||
_color[row][col] = color;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue