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:
parent
9ff57440a8
commit
0567f2db54
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user