I wasn’t sure how to call this. Basically I have a Label widget. It has an auto size feature. The problem is I do not know who calls setSize(); I need to know if the class called it or if the user of the label called it because you cannot resize an auto sizing widget. I cannot directly change the size because, well 1, it’s not very OO, and 2 I cannot access it because the size is in the base class. I can only override setSize() but without knowing who called it, I cannot filter out anyone.
Thanks
Move the implementation into a (renamed) private method, make
setSize()into a wrapper that checks the condition.