[Libreoffice-commits] core.git: vcl/qt5

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Fri Sep 28 09:05:27 UTC 2018


 vcl/qt5/Qt5AccessibleWidget.cxx |   10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

New commits:
commit 6b787aec5241b22c40a3acccc9a861f8b8dfd65b
Author:     Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
AuthorDate: Thu Sep 27 17:03:12 2018 +0200
Commit:     Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
CommitDate: Fri Sep 28 11:05:01 2018 +0200

    Qt5AccessibleWidget: Implement foreground and background color
    
    Change-Id: Ice848f429ce8b9d4395e3cf1c23c22aa806fb5f9
    Reviewed-on: https://gerrit.libreoffice.org/61043
    Tested-by: Jenkins
    Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>

diff --git a/vcl/qt5/Qt5AccessibleWidget.cxx b/vcl/qt5/Qt5AccessibleWidget.cxx
index e0bfa982a591..5228e29d4946 100644
--- a/vcl/qt5/Qt5AccessibleWidget.cxx
+++ b/vcl/qt5/Qt5AccessibleWidget.cxx
@@ -434,8 +434,14 @@ QAccessible::State Qt5AccessibleWidget::state() const
     return state;
 }
 
-QColor Qt5AccessibleWidget::foregroundColor() const { return QColor(); }
-QColor Qt5AccessibleWidget::backgroundColor() const { return QColor(); }
+QColor Qt5AccessibleWidget::foregroundColor() const
+{
+    return toQColor(m_pWindow->GetControlForeground());
+}
+QColor Qt5AccessibleWidget::backgroundColor() const
+{
+    return toQColor(m_pWindow->GetControlBackground());
+}
 
 void* Qt5AccessibleWidget::interface_cast(QAccessible::InterfaceType /* t */)
 {


More information about the Libreoffice-commits mailing list