avoid deprecation warning

This commit is contained in:
Uwe Rathmann 2019-09-02 13:37:46 +02:00
parent dbae418b1d
commit a80a6b3f32

View File

@ -321,7 +321,7 @@ class MainWidget : public QWidget
const auto r = contentsRect(); const auto r = contentsRect();
const int spacing = 5; const int spacing = 5;
auto fm = m_listBox->fontMetrics(); auto fm = QFontMetricsF( m_listBox->font() );
const int w1 = fm.width( "Test 100" ) + 20; const int w1 = fm.width( "Test 100" ) + 20;
const int w2 = r.width() - w1 - spacing; const int w2 = r.width() - w1 - spacing;