mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Column: Implemented ::renderDouble
This commit is contained in:
parent
b8ae54275e
commit
4d42584ca0
2 changed files with 14 additions and 0 deletions
|
@ -277,3 +277,16 @@ void Column::renderInteger (
|
||||||
}
|
}
|
||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
void Column::renderDouble (
|
||||||
|
std::vector <std::string>& lines,
|
||||||
|
int width,
|
||||||
|
Color& color,
|
||||||
|
double value)
|
||||||
|
{
|
||||||
|
lines.push_back (
|
||||||
|
color.colorize (
|
||||||
|
rightJustify (
|
||||||
|
format (value, 4, 3), width)));
|
||||||
|
}
|
||||||
|
|
||||||
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
|
@ -67,6 +67,7 @@ public:
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void renderInteger (std::vector <std::string>&, int, Color&, int);
|
void renderInteger (std::vector <std::string>&, int, Color&, int);
|
||||||
|
void renderDouble (std::vector <std::string>&, int, Color&, double);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
std::string _name;
|
std::string _name;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue