mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
View
- Converted history reports to use ViewText. - Fixed unit test.
This commit is contained in:
parent
fcb711d673
commit
ec7d9ed765
5 changed files with 103 additions and 144 deletions
|
@ -40,7 +40,7 @@ public:
|
|||
~ViewText () {}
|
||||
|
||||
// View specifications.
|
||||
void add (const std::string&);
|
||||
void add (Column* col) { _columns.push_back (col); }
|
||||
void width (int width) { _width = width; }
|
||||
void leftMargin (int margin) { _left_margin = margin; }
|
||||
void colorHeader (Color& c) { _header = c; }
|
||||
|
@ -55,7 +55,7 @@ public:
|
|||
void truncateLines (int n) { _truncate_lines = n; }
|
||||
void truncateRows (int n) { _truncate_rows = n; }
|
||||
int lines () { return _lines; }
|
||||
int rows () { return _rows; }
|
||||
int rows () { return (int) _data.size (); }
|
||||
|
||||
// Data provision.
|
||||
int addRow ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue