[vlc-commits] Qt, prefs: correctly set the tooltip on Font Selector

Jean-Baptiste Kempf git at videolan.org
Mon Oct 31 00:42:32 CET 2011


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sun Oct 30 00:34:12 2011 +0200| [b2202ed46c1dbc6ec564eaa927cbbb1b88b5ad27] | committer: Jean-Baptiste Kempf

Qt, prefs: correctly set the tooltip on Font Selector

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b2202ed46c1dbc6ec564eaa927cbbb1b88b5ad27
---

 modules/gui/qt4/components/preferences_widgets.cpp |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/modules/gui/qt4/components/preferences_widgets.cpp b/modules/gui/qt4/components/preferences_widgets.cpp
index 2c52eb6..7415094 100644
--- a/modules/gui/qt4/components/preferences_widgets.cpp
+++ b/modules/gui/qt4/components/preferences_widgets.cpp
@@ -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 **********/



More information about the vlc-commits mailing list