diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2018-08-09 14:45:49 +0200 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2018-08-10 09:47:19 +0200 |
commit | e7a9e653027407a0cb2bb6dd88241f809a3929d9 (patch) | |
tree | 88ca855c77b3e66475d2ecbdbbe69f0ff460f4e7 /vcl/inc/qt5 | |
parent | 3e52c6512e8f00c7f1481a09b50c9c8d5ac1aca5 (diff) |
Qt5 disable native draw via SAL_VCL_QT5_NO_NATIVE
Primary as a debugging measure to compare output for Qt5Graphics.
Checks mpToolkitName, so we just disable it for qt5 not kde5.
Change-Id: Ib7a67c4bec16d81dd87b6351ba106f655d37948b
Reviewed-on: https://gerrit.libreoffice.org/58790
Tested-by: Jenkins
Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'vcl/inc/qt5')
-rw-r--r-- | vcl/inc/qt5/Qt5Data.hxx | 2 | ||||
-rw-r--r-- | vcl/inc/qt5/Qt5Graphics.hxx | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/vcl/inc/qt5/Qt5Data.hxx b/vcl/inc/qt5/Qt5Data.hxx index 631e66f31f3a..ef537d0c040f 100644 --- a/vcl/inc/qt5/Qt5Data.hxx +++ b/vcl/inc/qt5/Qt5Data.hxx @@ -40,6 +40,8 @@ public: virtual bool ErrorTrapPop(bool bIgnoreError = true) override; QCursor& getCursor(PointerStyle ePointerStyle); + + static bool noNativeControls(); }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/inc/qt5/Qt5Graphics.hxx b/vcl/inc/qt5/Qt5Graphics.hxx index 4a9ff20c137d..88382a0c11f3 100644 --- a/vcl/inc/qt5/Qt5Graphics.hxx +++ b/vcl/inc/qt5/Qt5Graphics.hxx @@ -27,6 +27,7 @@ #include <QtGui/QPainterPath> #include <QtGui/QRegion> +#include "Qt5Data.hxx" #include "Qt5Graphics_Controls.hxx" class PhysicalFontCollection; @@ -216,6 +217,8 @@ public: inline bool Qt5Graphics::IsNativeControlSupported(ControlType nType, ControlPart nPart) { + if (Qt5Data::noNativeControls()) + return false; return m_aControl.IsNativeControlSupported(nType, nPart); } |