From 0567f2db5437d59ef642056c263502d45742e554 Mon Sep 17 00:00:00 2001 From: Victor Zarubkin Date: Thu, 10 Jan 2019 00:29:22 +0300 Subject: [PATCH] #143 fixed QFont issue with negative weight --- profiler_gui/common_functions.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/profiler_gui/common_functions.cpp b/profiler_gui/common_functions.cpp index 53316a2..5a924ab 100644 --- a/profiler_gui/common_functions.cpp +++ b/profiler_gui/common_functions.cpp @@ -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; }