[vlc-commits] commit: qt4: respect qtconfig fontsize on icon_view (Ilkka Ollakka )
git at videolan.org
git at videolan.org
Mon May 24 20:54:56 CEST 2010
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Mon May 24 21:51:51 2010 +0300| [6ea06756b2cf5410b2c5665911f3cfcfda9eb890] | committer: Ilkka Ollakka
qt4: respect qtconfig fontsize on icon_view
This may be too big font for some, but static 7 point isn't that good either.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6ea06756b2cf5410b2c5665911f3cfcfda9eb890
---
modules/gui/qt4/components/playlist/icon_view.cpp | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diff --git a/modules/gui/qt4/components/playlist/icon_view.cpp b/modules/gui/qt4/components/playlist/icon_view.cpp
index 850b39b..cc5ee73 100644
--- a/modules/gui/qt4/components/playlist/icon_view.cpp
+++ b/modules/gui/qt4/components/playlist/icon_view.cpp
@@ -160,7 +160,6 @@ void PlIconViewItemDelegate::paint( QPainter * painter, const QStyleOptionViewIt
painter->setPen( option.palette.color( QPalette::HighlightedText ) );
QFont font( index.data( Qt::FontRole ).value<QFont>() );
- font.setPointSize( 7 );
//Draw children indicator
if( !index.data( PLModel::IsLeafNodeRole ).toBool() )
@@ -206,8 +205,7 @@ void PlIconViewItemDelegate::paint( QPainter * painter, const QStyleOptionViewIt
QSize PlIconViewItemDelegate::sizeHint ( const QStyleOptionViewItem & option, const QModelIndex & index ) const
{
- QFont f;
- f.setPointSize( 7 );
+ QFont f( index.data( Qt::FontRole ).value<QFont>() );
f.setBold( true );
QFontMetrics fm( f );
int textHeight = fm.height();
More information about the vlc-commits
mailing list