diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-09-18 14:22:28 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-09-28 08:48:48 +0100 |
commit | d23a61c697a81174a74fcbd78b43bd4482562af3 (patch) | |
tree | c0abb81ff77ef1fd87d95db08ec95b8aedb1c947 /vcl | |
parent | 0be1db23e008963e882e0548ca8357a10ccff380 (diff) |
copy the button data
Change-Id: I3014106791b761e6aad5ea355402f9a2850f5bb5
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/inc/vcl/button.hxx | 1 | ||||
-rw-r--r-- | vcl/source/control/button.cxx | 7 |
2 files changed, 8 insertions, 0 deletions
diff --git a/vcl/inc/vcl/button.hxx b/vcl/inc/vcl/button.hxx index 6ea504ea8093..d6690b55f849 100644 --- a/vcl/inc/vcl/button.hxx +++ b/vcl/inc/vcl/button.hxx @@ -96,6 +96,7 @@ public: void SetFocusRect( const Rectangle& rFocusRect ); bool IsSmallSymbol () const; + virtual void take_properties(Window &rOther); }; // -------------------- diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx index 6b45e6d02285..09b70558a881 100644 --- a/vcl/source/control/button.cxx +++ b/vcl/source/control/button.cxx @@ -105,6 +105,13 @@ Button::Button( WindowType nType ) : mpButtonData = new ImplCommonButtonData; } +void Button::take_properties(Window &rOther) +{ + Control::take_properties(rOther); + Button &rOtherButton = static_cast<Button&>(rOther); + *mpButtonData = *rOtherButton.mpButtonData; +} + // ----------------------------------------------------------------------- Button::~Button() |