ColParent: Now uses ::renderStringLeft
This commit is contained in:
@@ -37,7 +37,6 @@ extern Context context;
|
|||||||
ColumnParent::ColumnParent ()
|
ColumnParent::ColumnParent ()
|
||||||
{
|
{
|
||||||
_name = "parent";
|
_name = "parent";
|
||||||
_type = "string";
|
|
||||||
_style = "long";
|
_style = "long";
|
||||||
_label = STRING_COLUMN_LABEL_PARENT;
|
_label = STRING_COLUMN_LABEL_PARENT;
|
||||||
_modifiable = false;
|
_modifiable = false;
|
||||||
@@ -76,19 +75,11 @@ void ColumnParent::render (
|
|||||||
{
|
{
|
||||||
// f30cb9c3-3fc0-483f-bfb2-3bf134f00694 default
|
// f30cb9c3-3fc0-483f-bfb2-3bf134f00694 default
|
||||||
// 34f00694 short
|
// 34f00694 short
|
||||||
if (_style == "default" ||
|
if (_style == "default" || _style == "long")
|
||||||
_style == "long")
|
renderStringLeft (lines, width, color, task.get(_name));
|
||||||
{
|
|
||||||
lines.push_back (color.colorize (leftJustify (task.get (_name), width)));
|
|
||||||
}
|
|
||||||
|
|
||||||
else if (_style == "short")
|
else if (_style == "short")
|
||||||
{
|
renderStringLeft (lines, width, color, task.get (_name).substr (28));
|
||||||
if (task.has (_name))
|
|
||||||
lines.push_back (color.colorize (leftJustify (task.get (_name).substr (28), width)));
|
|
||||||
else
|
|
||||||
lines.push_back (color.colorize (leftJustify ("", width)));
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user