[vlc-commits] Qt: fix EPG dialog on HiDpi
Rafaël Carré
git at videolan.org
Fri Sep 5 00:03:21 CEST 2014
vlc/vlc-2.2 | branch: master | Rafaël Carré <funman at videolan.org> | Thu Sep 4 18:16:59 2014 +0200| [465acb4a43be8d3bae46f576645f8b46bdea6df1] | committer: Felix Paul Kühne
Qt: fix EPG dialog on HiDpi
(cherry picked from commit 1ec8c36705246b191053b6ebec1491c121cf521a)
Signed-off-by: Felix Paul Kühne <fkuehne at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=465acb4a43be8d3bae46f576645f8b46bdea6df1
---
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