Commit f4171d24 authored by Daniel Amm's avatar Daniel Amm Committed by Jean-Baptiste Kempf

Qt: set the seekslider height depending on the DPI

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent e61c12c6
......@@ -121,7 +121,8 @@ SeekSlider::SeekSlider( Qt::Orientation q, QWidget *_parent, bool _static )
setFocusPolicy( Qt::NoFocus );
/* Use the new/classic style */
setMinimumHeight( 18 );
qreal scalingFactorY = static_cast<qreal>(logicalDpiY()) / DPI_REF_VALUE;
setMinimumHeight( 18.0 * scalingFactorY );
if( !b_classic )
{
alternativeStyle = new SeekStyle;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment