[vlc-commits] qt: extended_panels: replace deprecated QFontMetrics::width
Alexandre Janniaux
git at videolan.org
Sun Jul 28 08:36:01 CEST 2019
vlc | branch: master | Alexandre Janniaux <ajanni at videolabs.io> | Thu Jul 25 01:14:53 2019 +0200| [5a62d2aa2fdfd76ce9aa96dc17975f1ec90b0a07] | committer: Jean-Baptiste Kempf
qt: extended_panels: replace deprecated QFontMetrics::width
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5a62d2aa2fdfd76ce9aa96dc17975f1ec90b0a07
---
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 )
{
More information about the vlc-commits
mailing list