Commit df82fa4f authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Fix compile against qt6

parent 431cf5fd
Pipeline #188818 passed with stage
in 5 minutes and 22 seconds
......@@ -992,7 +992,7 @@ void QWinMetaFile::createFontIndirect(long, short *parm)
handle->font.setFixedPitch(((parm[8] & 0x01) == 0));
// TODO: investigation why some test case need -2. (size of font in logical point)
handle->font.setPointSize(qAbs(parm[0]) - 2);
handle->font.setWeight((parm[4] >> 3));
handle->font.setWeight(static_cast<QFont::Weight>((parm[4] >> 3)));
handle->font.setItalic((parm[5] & 0x01));
handle->font.setUnderline((parm[5] & 0x100));
}
......
Supports Markdown
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