[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.0' - vcl/source

Tomaž Vajngerl (via logerrit) logerrit at kemper.freedesktop.org
Mon May 6 13:24:50 UTC 2019


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

New commits:
commit c76f89edf12a62b49e4beb0f1a294ab68c532c72
Author:     Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
AuthorDate: Mon May 6 22:10:57 2019 +0900
Commit:     Jan Holesovsky <kendy at 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 <kendy at collabora.com>
    Tested-by: Jan Holesovsky <kendy at 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;
         }


More information about the Libreoffice-commits mailing list