From: nds Date: Wed, 7 May 2008 12:23:56 +0000 (+0000) Subject: Appends statusTip for child tool button. Fix for bug HDFE19688. X-Git-Tag: TG_ACHERON_V9_0_6~1 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2a3a6119f533d4f23d6cc021caba3e5b7ced9840;p=modules%2Fgui.git Appends statusTip for child tool button. Fix for bug HDFE19688. --- diff --git a/src/Qtx/QtxListAction.cxx b/src/Qtx/QtxListAction.cxx index 813d052ee..efa47e765 100755 --- a/src/Qtx/QtxListAction.cxx +++ b/src/Qtx/QtxListAction.cxx @@ -626,6 +626,7 @@ QtxListAction::QtxListAction( const QString& text, const QString& menuText, setText( menuText ); setShortcut( accel ); setToolTip( text ); + setStatusTip( text ); initialize(); } @@ -647,6 +648,7 @@ QtxListAction::QtxListAction( const QString& text, const QIcon& icon, setText( menuText ); setShortcut( accel ); setToolTip( text ); + setStatusTip( text ); initialize(); } @@ -814,6 +816,7 @@ QWidget* QtxListAction::createWidget( QWidget* parent ) tb->setMenu( myFrame ); tb->setEnabled( isEnabled() && !names().isEmpty() ); tb->setToolTip( toolTip() ); + tb->setStatusTip( statusTip() ); connect( tb, SIGNAL( clicked( bool ) ), this, SLOT( onSingle( bool ) ) ); return tb; @@ -877,6 +880,7 @@ void QtxListAction::onChanged() tb->setText( text() ); tb->setIcon( icon() ); tb->setToolTip( toolTip() ); + tb->setStatusTip( statusTip() ); } } }