]> git.sesse.net Git - vlc/commitdiff
Qt4: return fontrole for all items
authorIlkka Ollakka <ileoo@videolan.org>
Wed, 30 Jun 2010 11:20:44 +0000 (14:20 +0300)
committerIlkka Ollakka <ileoo@videolan.org>
Wed, 30 Jun 2010 11:22:33 +0000 (14:22 +0300)
By default use defaultsize (from theme/system) - 2 points.

modules/gui/qt4/components/playlist/playlist_model.cpp

index 0b4dfb8b028e579832081e16419348b34dced710..fb74cf66fc46955e36e542ab6996fc704e964252 100644 (file)
@@ -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 ) )
     {