diff options
author | Khaled Hosny <khaled@libreoffice.org> | 2023-07-08 22:42:12 +0300 |
---|---|---|
committer | خالد حسني <khaled@libreoffice.org> | 2023-07-09 12:02:28 +0200 |
commit | f9b16330f13d3ad43de6de026206577bfa1ac85d (patch) | |
tree | 304b3ae825686e3ce4ccb7af01e17b6483dc7bf1 /vcl/qt5/QtInstance.cxx | |
parent | 1f24d35033c2f02335ce254bbcf6ba89e1b7565e (diff) |
tdf#151273, tdf#151925: Don’t use QFont text layout by default
We were enabling QFont for qt5 VCL plugin by default, but it is buggy
and some distributions seem to enabled qt5 VCL plugin even if we don't
recommend it.
Since the QFont code is incomplete and no one is working on it, lets
make people’s life easier by making it always off by default.
This removed the SAL_VCL_QT5_USE_CAIRO envvar and replaces it with
SAL_VCL_QT_USE_QFONT that does the reverse. Also SAL_VCL_KF5_USE_QFONT
is dropped in favor of SAL_VCL_QT_USE_QFONT.
Change-Id: Id7471acd12fe277908f567140b63ae8d27b03033
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/154222
Tested-by: Jenkins
Reviewed-by: خالد حسني <khaled@libreoffice.org>
Diffstat (limited to 'vcl/qt5/QtInstance.cxx')
-rw-r--r-- | vcl/qt5/QtInstance.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/qt5/QtInstance.cxx b/vcl/qt5/QtInstance.cxx index 9c4d3def970e..df3df5d17a74 100644 --- a/vcl/qt5/QtInstance.cxx +++ b/vcl/qt5/QtInstance.cxx @@ -751,7 +751,7 @@ void QtInstance::setActivePopup(QtFrame* pFrame) extern "C" { VCLPLUG_QT_PUBLIC SalInstance* create_SalInstance() { - static const bool bUseCairo = (nullptr != getenv("SAL_VCL_QT5_USE_CAIRO")); + static const bool bUseCairo = (nullptr == getenv("SAL_VCL_QT_USE_QFONT")); std::unique_ptr<char* []> pFakeArgv; std::unique_ptr<int> pFakeArgc; |