Bug
- The entry.age column did not modify the column label of 'Added' to be 'Age'.
This commit is contained in:
@@ -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:
|
public:
|
||||||
ColumnEntry ();
|
ColumnEntry ();
|
||||||
~ColumnEntry ();
|
~ColumnEntry ();
|
||||||
|
|
||||||
|
void setStyle (const std::string&);
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user