Inherit the model class. In that class make ur own display function. Call this function instead of the setData function.
Pseudo code -
class myModel :public someModel
{
private :
setData() ; // original setData . Redeclaring it in private will make it private.
public :
mySetData()
{
// do ur conversion
setData(); call the private method
}
};
class myModel :public someModel
{
private :
setData() ; // original setData . Redeclaring it in private will make it private.
public :
mySetData()
{
// do ur conversion
setData(); call the private method
}
};
To copy to clipboard, switch view to plain text mode
Hope u get the idea
Bookmarks