make setStyle virtual
This commit is contained in:
parent
948feddc2e
commit
f890d31d6b
2 changed files with 2 additions and 2 deletions
|
@ -32,7 +32,7 @@ public:
|
||||||
void buttonPressHandler(const XButtonEvent &e);
|
void buttonPressHandler(const XButtonEvent &e);
|
||||||
void buttonReleaseHandler(const XButtonEvent &e);
|
void buttonReleaseHandler(const XButtonEvent &e);
|
||||||
|
|
||||||
void setStyle(Style *style);
|
virtual void setStyle(Style *style);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
|
|
|
@ -97,7 +97,7 @@ public:
|
||||||
void setDirection(Direction dir) { _direction = dir; }
|
void setDirection(Direction dir) { _direction = dir; }
|
||||||
|
|
||||||
inline Style *getStyle(void) const { return _style; }
|
inline Style *getStyle(void) const { return _style; }
|
||||||
void setStyle(Style *style) { assert(style); _style = style; }
|
virtual void setStyle(Style *style) { assert(style); _style = style; }
|
||||||
|
|
||||||
inline OtkEventDispatcher *getEventDispatcher(void)
|
inline OtkEventDispatcher *getEventDispatcher(void)
|
||||||
{ return _event_dispatcher; }
|
{ return _event_dispatcher; }
|
||||||
|
|
Loading…
Reference in a new issue