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

Tomaž Vajngerl (via logerrit) logerrit at kemper.freedesktop.org
Tue Nov 19 08:38:58 UTC 2019


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

New commits:
commit 7c4b5c46dd1679d93a21f015e5a09f3428eb3d2c
Author:     Tomaž Vajngerl <tomaz.vajngerl at collabora.co.uk>
AuthorDate: Mon Nov 18 23:15:54 2019 +0100
Commit:     Tomaž Vajngerl <quikee at gmail.com>
CommitDate: Tue Nov 19 09:38:15 2019 +0100

    widget theme: add file definition theme support to qt5 backend
    
    Change-Id: I603e75d056a75837353be25f901ab7df6e0cc71a
    Reviewed-on: https://gerrit.libreoffice.org/83135
    Tested-by: Jenkins
    Reviewed-by: Tomaž Vajngerl <quikee at gmail.com>

diff --git a/vcl/qt5/Qt5Graphics.cxx b/vcl/qt5/Qt5Graphics.cxx
index 8228699a2602..60054700596e 100644
--- a/vcl/qt5/Qt5Graphics.cxx
+++ b/vcl/qt5/Qt5Graphics.cxx
@@ -40,8 +40,12 @@ Qt5Graphics::Qt5Graphics( Qt5Frame *pFrame, QImage *pQImage )
     , m_aTextColor( 0x00, 0x00, 0x00 )
 {
     ResetClipRegion();
-    if (!Qt5Data::noNativeControls())
-        m_pWidgetDraw.reset(new Qt5Graphics_Controls());
+
+    if (!initWidgetDrawBackends(false))
+    {
+        if (!Qt5Data::noNativeControls())
+            m_pWidgetDraw.reset(new Qt5Graphics_Controls());
+    }
 }
 
 Qt5Graphics::~Qt5Graphics() { ReleaseFonts(); }


More information about the Libreoffice-commits mailing list