[vlc-commits] Qt: fix EPG dialog on HiDpi
Rafaël Carré
git at videolan.org
Thu Sep 4 18:18:11 CEST 2014
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Thu Sep 4 18:16:59 2014 +0200| [1ec8c36705246b191053b6ebec1491c121cf521a] | committer: Rafaël Carré
Qt: fix EPG dialog on HiDpi
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1ec8c36705246b191053b6ebec1491c121cf521a
---
modules/gui/qt4/components/epg/EPGChannels.cpp | 2 +-
modules/gui/qt4/components/epg/EPGRuler.cpp | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/gui/qt4/components/epg/EPGChannels.cpp b/modules/gui/qt4/components/epg/EPGChannels.cpp
index 73c2531..28616a9 100644
--- a/modules/gui/qt4/components/epg/EPGChannels.cpp
+++ b/modules/gui/qt4/components/epg/EPGChannels.cpp
@@ -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 )
diff --git a/modules/gui/qt4/components/epg/EPGRuler.cpp b/modules/gui/qt4/components/epg/EPGRuler.cpp
index ee32292..bd7ccac 100644
--- a/modules/gui/qt4/components/epg/EPGRuler.cpp
+++ b/modules/gui/qt4/components/epg/EPGRuler.cpp
@@ -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;
}
More information about the vlc-commits
mailing list