Skip to content

Commit

Permalink
#143 fixed QFont issue with negative weight
Browse files Browse the repository at this point in the history
  • Loading branch information
cas4ey committed Jan 9, 2019
1 parent 9ff5744 commit 0567f2d
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions profiler_gui/common_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -293,11 +293,8 @@ namespace profiler_gui {

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.setFamily(_family);
f.setPointSize(_size);
f.setWeight(_weight);
return f;
}

Expand Down

0 comments on commit 0567f2d

Please sign in to comment.