]> git.sesse.net Git - vlc/commitdiff
Qt, prefs: correctly set the tooltip on Font Selector
authorJean-Baptiste Kempf <jb@videolan.org>
Sat, 29 Oct 2011 22:34:12 +0000 (00:34 +0200)
committerJean-Baptiste Kempf <jb@videolan.org>
Sun, 30 Oct 2011 23:42:19 +0000 (00:42 +0100)
modules/gui/qt4/components/preferences_widgets.cpp

index 2c52eb665cf421e65c7c149172237eee9a37a4c0..74150946c6cc09a93ee79c85a88a3dd013db0258 100644 (file)
@@ -382,6 +382,11 @@ FontConfigControl::FontConfigControl( vlc_object_t *_p_this,
         _p_layout->addWidget( label, line, 0 );
         _p_layout->addWidget( font, line, 1, 1, -1 );
     }
+
+    if( p_item->psz_longtext )
+    {
+        label->setToolTip( formatTooltip( qtr(p_item->psz_longtext) ) );
+    }
 }
 
 FontConfigControl::FontConfigControl( vlc_object_t *_p_this,
@@ -392,6 +397,11 @@ FontConfigControl::FontConfigControl( vlc_object_t *_p_this,
     label = _p_label;
     font = _p_font;
     font->setCurrentFont( QFont( qfu( p_item->value.psz) ) );
+
+    if( p_item->psz_longtext )
+    {
+        label->setToolTip( formatTooltip( qtr(p_item->psz_longtext) ) );
+    }
 }
 
 /********* String / choice list **********/