Commit 465acb4a authored by Rafaël Carré's avatar Rafaël Carré Committed by Felix Paul Kühne

Qt: fix EPG dialog on HiDpi

(cherry picked from commit 1ec8c36705246b191053b6ebec1491c121cf521a)
Signed-off-by: default avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 0812cc88
......@@ -72,7 +72,7 @@ void EPGChannels::paintEvent( QPaintEvent *event )
text = text.left( i_idx_channel );
p.drawText( 0, - m_offset + ( i++ + 0.5 ) * TRACKS_HEIGHT - 4,
width(), 20, Qt::AlignLeft, text );
width(), height(), Qt::AlignLeft, text );
int i_width = fontMetrics().width( text );
if( width() < i_width )
......
......@@ -36,8 +36,8 @@ EPGRuler::EPGRuler( QWidget* parent )
: QWidget( parent )
{
setContentsMargins( 0, 0, 0, 0 );
setMinimumHeight( 15 );
setMaximumHeight( 15 );
setMinimumHeight( height() );
setMaximumHeight( height() );
m_offset = 0;
}
......
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