[vlc-commits] commit: Qt4: return fontrole for all items (Ilkka Ollakka )
git at videolan.org
git at videolan.org
Wed Jun 30 13:26:58 CEST 2010
vlc | branch: master | Ilkka Ollakka <ileoo at videolan.org> | Wed Jun 30 14:20:44 2010 +0300| [8526b9a33f5d9e49d910bb8511faa68b6b33d0cb] | committer: Ilkka Ollakka
Qt4: return fontrole for all items
By default use defaultsize (from theme/system) - 2 points.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8526b9a33f5d9e49d910bb8511faa68b6b33d0cb
---
.../gui/qt4/components/playlist/playlist_model.cpp | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/modules/gui/qt4/components/playlist/playlist_model.cpp b/modules/gui/qt4/components/playlist/playlist_model.cpp
index 0b4dfb8..fb74cf6 100644
--- a/modules/gui/qt4/components/playlist/playlist_model.cpp
+++ b/modules/gui/qt4/components/playlist/playlist_model.cpp
@@ -352,10 +352,11 @@ QVariant PLModel::data( const QModelIndex &index, const int role ) const
}
else if( role == Qt::FontRole )
{
+ QFont f;
+ f.setPointSize( f.pointSize() - 2 );
if( isCurrent( index ) )
- {
- QFont f; f.setBold( true ); return QVariant( f );
- }
+ f.setBold( true );
+ return QVariant( f );
}
else if( role == Qt::BackgroundRole && isCurrent( index ) )
{
More information about the vlc-commits
mailing list