Kaydet (Commit) adc3932d authored tarafından Michael Meeks's avatar Michael Meeks

cui: add calculation mode to Help->About.

Change-Id: I4765436bed8a58c5097afcf7dce768d3ec325015
Reviewed-on: https://gerrit.libreoffice.org/26964Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMichael Meeks <michael.meeks@collabora.com>
üst fd665508
...@@ -47,6 +47,8 @@ ...@@ -47,6 +47,8 @@
#include <sfx2/app.hxx> #include <sfx2/app.hxx>
#include <rtl/ustrbuf.hxx> #include <rtl/ustrbuf.hxx>
#include <vcl/bitmap.hxx> #include <vcl/bitmap.hxx>
#include <opencl/openclwrapper.hxx>
#include <officecfg/Office/Common.hxx> #include <officecfg/Office/Common.hxx>
using namespace ::com::sun::star::uno; using namespace ::com::sun::star::uno;
...@@ -302,6 +304,17 @@ OUString AboutDialog::GetVersionString() ...@@ -302,6 +304,17 @@ OUString AboutDialog::GetVersionString()
sVersion += m_aLocaleStr.replaceAll("$LOCALE", aLocaleStr); sVersion += m_aLocaleStr.replaceAll("$LOCALE", aLocaleStr);
} }
OUString aCalcMode = "Calc: "; // Calc calculation mode
bool bSWInterp = officecfg::Office::Common::Misc::UseSwInterpreter::get();
bool bOpenCL = opencl::GPUEnv::isOpenCLEnabled();
if (bOpenCL)
aCalcMode += "CL";
else if (bSWInterp)
aCalcMode += "group";
else
aCalcMode += "single";
sVersion += "; " + aCalcMode;
return sVersion; return sVersion;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment