[vlc-devel] [PATCH 5/7] qt: extended_panels: replace deprecated QFontMetrics::width
Alexandre Janniaux
ajanni at videolabs.io
Thu Jul 25 01:14:53 CEST 2019
---
modules/gui/qt/components/extended_panels.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt/components/extended_panels.cpp b/modules/gui/qt/components/extended_panels.cpp
index 305c98b740..937206c589 100644
--- a/modules/gui/qt/components/extended_panels.cpp
+++ b/modules/gui/qt/components/extended_panels.cpp
@@ -1106,8 +1106,8 @@ void Equalizer::build()
connectConfigChanged( preamp );
/* fix sliders spacing accurately */
- int i_width = qMax( QFontMetrics( smallFont ).width( "500 Hz" ),
- QFontMetrics( smallFont ).width( "-20.0 dB" ) );
+ int i_width = qMax( QFontMetrics( smallFont ).horizontalAdvance( "500 Hz" ),
+ QFontMetrics( smallFont ).horizontalAdvance( "-20.0 dB" ) );
int i = 0;
foreach( const FilterSliderData::slider_data_t &data, controls )
{
--
2.22.0
More information about the vlc-devel
mailing list