Updates to support Qt v5.13

Replacement of deprecated Qt functions and member functions.
This commit is contained in:
Bill Somerville
2019-07-08 01:37:04 +01:00
parent 0c49f6f872
commit 01aaa852e3
7 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ public:
QSize minimumSizeHint () const override
{
QFontMetrics font_metrics {font (), nullptr};
return {tick_length + text_indent + font_metrics.width ("00+"), (font_metrics.height () + line_spacing) * range};
return {tick_length + text_indent + font_metrics.boundingRect ("00+").width (), (font_metrics.height () + line_spacing) * range};
}
protected: