summaryrefslogtreecommitdiff
path: root/vcl/qt5
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2021-09-29 11:32:10 +0200
committerMichael Weghorn <m.weghorn@posteo.de>2021-09-29 15:01:14 +0200
commit99983c3c0b855a3449cf974224fae338b578dbd5 (patch)
tree298070151369d72df3e3acc7cc4e90ad763e8f62 /vcl/qt5
parent2db427f9e098439ef68ce309bd8b440160ff37a0 (diff)
qt: Use actual major Qt version number in toolkit ID
This makes the qt6 VCL plugin actually show up as such instead of "qt5" in "Help" -> "About LibreOffice". Change-Id: I33804dc779c7f2692be260353dda2edc86ea8544 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122809 Tested-by: Jenkins Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
Diffstat (limited to 'vcl/qt5')
-rw-r--r--vcl/qt5/QtInstance.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/vcl/qt5/QtInstance.cxx b/vcl/qt5/QtInstance.cxx
index 730e722754c9..42b7a8ed8a48 100644
--- a/vcl/qt5/QtInstance.cxx
+++ b/vcl/qt5/QtInstance.cxx
@@ -224,7 +224,8 @@ QtInstance::QtInstance(std::unique_ptr<QApplication>& pQApp, bool bUseCairo)
, m_bUpdateFonts(false)
{
ImplSVData* pSVData = ImplGetSVData();
- pSVData->maAppData.mxToolkitName = constructToolkitID(u"qt5");
+ const OUString sToolkit = "qt" + OUString::number(QT_VERSION_MAJOR);
+ pSVData->maAppData.mxToolkitName = constructToolkitID(sToolkit);
// this one needs to be blocking, so that the handling in main thread
// is processed before the thread emitting the signal continues