- The entry.age column did not modify the column label of 'Added' to
  be 'Age'.
This commit is contained in:
Paul Beckingham 2011-05-08 15:14:42 -04:00
parent f05fedfc7a
commit 001769997d
2 changed files with 12 additions and 0 deletions

View file

@ -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";
}
////////////////////////////////////////////////////////////////////////////////

View file

@ -34,6 +34,8 @@ class ColumnEntry : public ColumnDate
public:
ColumnEntry ();
~ColumnEntry ();
void setStyle (const std::string&);
};
#endif