diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2019-05-06 22:10:57 +0900 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2019-05-07 02:40:04 +0200 |
commit | 7764439f85f23efb4510b41e795abd1e4c9089e9 (patch) | |
tree | 0d8eee522bec17c05cd9c816e8818278f1d02c8f /vcl | |
parent | a43909d538a63ec10e267d58acecbeb9a65fd3d8 (diff) |
WidgetDefinition: add "action" state for the PushButton
Change-Id: I0db9ec275cc95184ceb2cdbce8ae5343a10582c1
Reviewed-on: https://gerrit.libreoffice.org/71861
Tested-by: Jenkins
Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/gdi/WidgetDefinition.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/vcl/source/gdi/WidgetDefinition.cxx b/vcl/source/gdi/WidgetDefinition.cxx index 6eb6ae7fa3ac..2a8ae5025020 100644 --- a/vcl/source/gdi/WidgetDefinition.cxx +++ b/vcl/source/gdi/WidgetDefinition.cxx @@ -99,6 +99,13 @@ WidgetDefinitionPart::getStates(ControlType eType, ControlPart ePart, ControlSta } } break; + case ControlType::Pushbutton: + { + auto const& rPushButtonValue = static_cast<PushButtonValue const&>(rValue); + if (rPushButtonValue.mbIsAction) + sExtra = "action"; + } + break; default: break; } |