diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2019-11-18 23:15:54 +0100 |
---|---|---|
committer | Tomaž Vajngerl <quikee@gmail.com> | 2019-11-19 09:38:15 +0100 |
commit | 7c4b5c46dd1679d93a21f015e5a09f3428eb3d2c (patch) | |
tree | 602a031bb90f8947fdd1f4cfd9963108085f60d0 /vcl/qt5 | |
parent | 88e0b283c26dea873442017229c5b7fe2c862494 (diff) |
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@gmail.com>
Diffstat (limited to 'vcl/qt5')
-rw-r--r-- | vcl/qt5/Qt5Graphics.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
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(); } |