summaryrefslogtreecommitdiff
path: root/vcl/qt5
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2019-11-18 23:15:54 +0100
committerTomaž Vajngerl <quikee@gmail.com>2019-11-19 09:38:15 +0100
commit7c4b5c46dd1679d93a21f015e5a09f3428eb3d2c (patch)
tree602a031bb90f8947fdd1f4cfd9963108085f60d0 /vcl/qt5
parent88e0b283c26dea873442017229c5b7fe2c862494 (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.cxx8
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(); }