mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Bug
- The entry.age column did not modify the column label of 'Added' to be 'Age'.
This commit is contained in:
parent
f05fedfc7a
commit
001769997d
2 changed files with 12 additions and 0 deletions
|
@ -40,3 +40,13 @@ ColumnEntry::~ColumnEntry ()
|
|||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Overriden so that style <----> label are linked.
|
||||
// Note that you can not determine which gets called first.
|
||||
void ColumnEntry::setStyle (const std::string& value)
|
||||
{
|
||||
_style = value;
|
||||
|
||||
if (_style == "age" && _label == "Added") _label = "Age";
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
|
|
@ -34,6 +34,8 @@ class ColumnEntry : public ColumnDate
|
|||
public:
|
||||
ColumnEntry ();
|
||||
~ColumnEntry ();
|
||||
|
||||
void setStyle (const std::string&);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue