mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
ColRecur
- Converted from OldDuration to Duration.
This commit is contained in:
parent
ea2efe4c93
commit
c103f22513
1 changed files with 3 additions and 3 deletions
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
#include <cmake.h>
|
#include <cmake.h>
|
||||||
#include <Context.h>
|
#include <Context.h>
|
||||||
#include <OldDuration.h>
|
#include <Duration.h>
|
||||||
#include <ColRecur.h>
|
#include <ColRecur.h>
|
||||||
#include <text.h>
|
#include <text.h>
|
||||||
#include <utf8.h>
|
#include <utf8.h>
|
||||||
|
@ -82,7 +82,7 @@ void ColumnRecur::measure (Task& task, unsigned int& minimum, unsigned int& maxi
|
||||||
if (_style == "default" ||
|
if (_style == "default" ||
|
||||||
_style == "duration")
|
_style == "duration")
|
||||||
{
|
{
|
||||||
minimum = maximum = OldDuration (task.get ("recur")).formatCompact ().length ();
|
minimum = maximum = Duration (task.get ("recur")).formatCompact ().length ();
|
||||||
}
|
}
|
||||||
else if (_style == "indicator")
|
else if (_style == "indicator")
|
||||||
{
|
{
|
||||||
|
@ -106,7 +106,7 @@ void ColumnRecur::render (
|
||||||
lines.push_back (
|
lines.push_back (
|
||||||
color.colorize (
|
color.colorize (
|
||||||
rightJustify (
|
rightJustify (
|
||||||
OldDuration (task.get ("recur")).formatCompact (),
|
Duration (task.get ("recur")).formatCompact (),
|
||||||
width)));
|
width)));
|
||||||
}
|
}
|
||||||
else if (_style == "indicator")
|
else if (_style == "indicator")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue