summaryrefslogtreecommitdiffstats
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-09-18 14:22:28 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-09-28 08:48:48 +0100
commitd23a61c697a81174a74fcbd78b43bd4482562af3 (patch)
treec0abb81ff77ef1fd87d95db08ec95b8aedb1c947 /vcl
parentadd adjustment for max columns (diff)
downloadcore-d23a61c697a81174a74fcbd78b43bd4482562af3.tar.gz
core-d23a61c697a81174a74fcbd78b43bd4482562af3.zip
copy the button data
Change-Id: I3014106791b761e6aad5ea355402f9a2850f5bb5
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/vcl/button.hxx1
-rw-r--r--vcl/source/control/button.cxx7
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()