vcl/source/gdi/WidgetDefinition.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit c76f89edf12a62b49e4beb0f1a294ab68c532c72
Author:     Tomaž Vajngerl <tomaz.vajng...@collabora.co.uk>
AuthorDate: Mon May 6 22:10:57 2019 +0900
Commit:     Jan Holesovsky <ke...@collabora.com>
CommitDate: Mon May 6 15:24:09 2019 +0200

    WidgetDefinition: add "action" state for the PushButton
    
    Change-Id: I0db9ec275cc95184ceb2cdbce8ae5343a10582c1
    Reviewed-on: https://gerrit.libreoffice.org/71862
    Reviewed-by: Jan Holesovsky <ke...@collabora.com>
    Tested-by: Jan Holesovsky <ke...@collabora.com>

diff --git a/vcl/source/gdi/WidgetDefinition.cxx 
b/vcl/source/gdi/WidgetDefinition.cxx
index c41afb63fe91..f9bad9aa7163 100644
--- a/vcl/source/gdi/WidgetDefinition.cxx
+++ b/vcl/source/gdi/WidgetDefinition.cxx
@@ -99,6 +99,12 @@ WidgetDefinitionPart::getStates(ControlType eType, 
ControlPart ePart, ControlSta
                 }
             }
             break;
+            case ControlType::Pushbutton:
+            {
+                auto const& rPushButtonValue = static_cast<PushButtonValue 
const&>(rValue);
+                if (rPushButtonValue.mbIsAction)
+                    sExtra = "action";
+            }
             default:
                 break;
         }
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to