Gui: use QString::fromStdString for std::string

This commit is contained in:
wmayer
2023-02-03 14:45:43 +01:00
committed by Uwe
parent d24bb7195a
commit 2ffa1d546f

View File

@@ -493,7 +493,7 @@ GLuint NaviCubeImplementation::createCubeFaceTex(QtGLWidget* gl, float gap, cons
paint.setPen(Qt::white);
QFont sansFont;
// check the user settings
QString fontString = QString::fromUtf8(m_CubeTextFont.c_str());
QString fontString = QString::fromStdString(m_CubeTextFont);
// Override fromString
if (hGrp->GetInt("FontWeight") > 0) {
sansFont.setWeight(convertWeights(hGrp->GetInt("FontWeight")));