0
0
mirror of https://github.com/yse/easy_profiler.git synced 2024-12-27 00:31:02 +08:00

#143 fixed QFont issue with negative weight

This commit is contained in:
Victor Zarubkin 2019-01-10 00:29:22 +03:00
parent 9ff57440a8
commit 0567f2db54

View File

@ -293,11 +293,8 @@ namespace profiler_gui {
QFont EFont(QFont::StyleHint _hint, const char* _family, int _size, int _weight) QFont EFont(QFont::StyleHint _hint, const char* _family, int _size, int _weight)
{ {
QFont f; QFont f(_family, _size, _weight);
f.setStyleHint(_hint, QFont::PreferMatch); f.setStyleHint(_hint, QFont::PreferMatch);
f.setFamily(_family);
f.setPointSize(_size);
f.setWeight(_weight);
return f; return f;
} }