mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 02:28:35 +00:00
Fix toqstr(chart_type) with Qt6 (#12252)
This commit is contained in:
parent
0acf594df2
commit
511ba894ff
@ -57,7 +57,7 @@ QString toqstr(docstring const & ucs4)
|
|||||||
QString toqstr(char_type ucs4)
|
QString toqstr(char_type ucs4)
|
||||||
{
|
{
|
||||||
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
|
#if (QT_VERSION >= QT_VERSION_CHECK(6, 0, 0))
|
||||||
return QString::fromStdU32String(std::u32string(ucs4, 1));
|
return QString::fromStdU32String(std::u32string(1, ucs4));
|
||||||
#else
|
#else
|
||||||
union { char_type c; uint i; } u = { ucs4 };
|
union { char_type c; uint i; } u = { ucs4 };
|
||||||
return QString::fromUcs4(&u.i, 1);
|
return QString::fromUcs4(&u.i, 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user