[vlc-commits] Qt: ToolbarEditDialog: show tooltip on widgets list

Francois Cartegnie git at videolan.org
Wed Jun 12 14:07:53 CEST 2013


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jun 12 13:56:39 2013 +0200| [099e253c24363da7194d49bc24f2208baf07adcf] | committer: Francois Cartegnie

Qt: ToolbarEditDialog: show tooltip on widgets list

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

 modules/gui/qt4/dialogs/toolbar.cpp |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/gui/qt4/dialogs/toolbar.cpp b/modules/gui/qt4/dialogs/toolbar.cpp
index 34c39ac..34e0924 100644
--- a/modules/gui/qt4/dialogs/toolbar.cpp
+++ b/modules/gui/qt4/dialogs/toolbar.cpp
@@ -305,6 +305,7 @@ WidgetListing::WidgetListing( intf_thread_t *p_intf, QWidget *_parent )
         QPixmap pix( iconL[i] );
         widgetItem->setIcon( pix.scaled( 16, 16, Qt::KeepAspectRatio, Qt::SmoothTransformation ) );
         widgetItem->setData( Qt::UserRole, QVariant( i ) );
+        widgetItem->setToolTip( widgetItem->text() );
         addItem( widgetItem );
     }
 
@@ -312,11 +313,13 @@ WidgetListing::WidgetListing( intf_thread_t *p_intf, QWidget *_parent )
     QListWidgetItem *widgetItem = new QListWidgetItem( QIcon( ":/toolbar/space" ),
             qtr( "Spacer" ), this );
     widgetItem->setData( Qt::UserRole, WIDGET_SPACER );
+    widgetItem->setToolTip( widgetItem->text() );
     addItem( widgetItem );
 
     widgetItem = new QListWidgetItem( QIcon( ":/toolbar/space" ),
             qtr( "Expanding Spacer" ), this );
     widgetItem->setData( Qt::UserRole, WIDGET_SPACER_EXTEND );
+    widgetItem->setToolTip( widgetItem->text() );
     addItem( widgetItem );
 
     /**
@@ -470,6 +473,7 @@ WidgetListing::WidgetListing( intf_thread_t *p_intf, QWidget *_parent )
 
 
         widgetItem->setIcon( QIcon( QPixmap::grabWidget( widget ) ) );
+        widgetItem->setToolTip( widgetItem->text() );
         widget->hide();
         widgetItem->setData( Qt::UserRole, QVariant( i ) );
 



More information about the vlc-commits mailing list