summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-05-19 02:19:33 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2016-06-18 17:02:18 +0200
commit742a1d7ea13be85947e103a506844dea450da1cc (patch)
tree3064bb9ac425438c314f7fe35414564432103827 /vcl
parentf06c50870c507444177ed604e08884d44f3e9770 (diff)
uitest: set ids for a few UI objects created in code
Change-Id: I421b97448bb596b134908ca6ddd60d7b4f60b186
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/control/button.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index caf22e4ef966..0546be2bee38 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -1703,6 +1703,7 @@ void PushButton::ShowFocus(const Rectangle& rRect)
void OKButton::ImplInit( vcl::Window* pParent, WinBits nStyle )
{
+ set_id("ok");
PushButton::ImplInit( pParent, nStyle );
SetText( Button::GetStandardText( StandardButtonType::OK ) );
@@ -1748,6 +1749,7 @@ void OKButton::Click()
void CancelButton::ImplInit( vcl::Window* pParent, WinBits nStyle )
{
+ set_id("cancel");
PushButton::ImplInit( pParent, nStyle );
SetText( Button::GetStandardText( StandardButtonType::Cancel ) );
@@ -1799,6 +1801,7 @@ CloseButton::CloseButton( vcl::Window* pParent, WinBits nStyle )
void HelpButton::ImplInit( vcl::Window* pParent, WinBits nStyle )
{
+ set_id("help");
PushButton::ImplInit( pParent, nStyle | WB_NOPOINTERFOCUS );
SetText( Button::GetStandardText( StandardButtonType::Help ) );