]> git.sesse.net Git - vlc/commitdiff
Qt: fix EPG dialog on HiDpi
authorRafaël Carré <funman@videolan.org>
Thu, 4 Sep 2014 16:16:59 +0000 (18:16 +0200)
committerRafaël Carré <funman@videolan.org>
Thu, 4 Sep 2014 16:18:05 +0000 (18:18 +0200)
modules/gui/qt4/components/epg/EPGChannels.cpp
modules/gui/qt4/components/epg/EPGRuler.cpp

index 73c2531aa065a6bac49d354021c7012febfc6c3b..28616a93ccabc4c5135225ca0ebbb17a24eaade6 100644 (file)
@@ -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 )
index ee3229214be1a26e17155d6b4315c1a1b8ae8fda..bd7ccaca7282cb95db9e88ee09fbfc3e6e637dd0 100644 (file)
@@ -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;
 }