]> SALOME platform Git repositories - modules/hydro.git/commitdiff
Salome HOME
Fix for bug #395: Tooltips of buttons and checkbox are absent.
authormzn <mzn@opencascade.com>
Wed, 2 Apr 2014 11:44:53 +0000 (11:44 +0000)
committermzn <mzn@opencascade.com>
Wed, 2 Apr 2014 11:44:53 +0000 (11:44 +0000)
src/HYDROGUI/HYDROGUI_OrderedListWidget.cxx
src/HYDROGUI/HYDROGUI_ZLevelsDlg.cxx
src/HYDROGUI/resources/HYDROGUI_msg_en.ts

index e1b2e7ebf12f41c398592abd308379a868ea01f1..1308378ffa1ccc2285c6abcf5ec53dfc4105d663 100644 (file)
@@ -69,15 +69,19 @@ HYDROGUI_OrderedListWidget::HYDROGUI_OrderedListWidget( QWidget* theParent )
   myTop = new QPushButton( this );
   myTop->setIcon( aResMgr->loadPixmap( "HYDRO", tr( "ARROW_TOP_ICO" ) ) );
   myTop->setIconSize( QSize( 32, 32 ) );
+  myTop->setToolTip( tr( "TOP_TLT" ) );
   myUp = new QPushButton( this );
   myUp->setIcon( aResMgr->loadPixmap( "HYDRO", tr( "ARROW_UP_ICO" ) ) );
   myUp->setIconSize( myTop->iconSize() );
+  myUp->setToolTip( tr( "UP_TLT" ) );
   myDown = new QPushButton( this );
   myDown->setIcon( aResMgr->loadPixmap( "HYDRO", tr( "ARROW_DOWN_ICO" ) ) );
   myDown->setIconSize( myTop->iconSize() );
+  myDown->setToolTip( tr( "DOWN_TLT" ) );
   myBottom = new QPushButton( this );
   myBottom->setIcon( aResMgr->loadPixmap( "HYDRO", tr( "ARROW_BOTTOM_ICO" ) ) );
   myBottom->setIconSize( myTop->iconSize() );
+  myBottom->setToolTip( tr( "BOTTOM_TLT" ) );
 
   // Layout
   // buttons
index 81b8f27703e4637824d65b76e264654176044684..4a50f528704754ec6734dc66984500593146aeb5 100644 (file)
@@ -54,6 +54,7 @@ HYDROGUI_ZLevelsDlg::HYDROGUI_ZLevelsDlg( QWidget* theParent, HYDROGUI_Module* t
 
   // "All objects" check box
   myAllObjects = new QCheckBox( tr( "ALL_OBJECTS" ) );
+  myAllObjects->setToolTip( tr( "ALL_OBJECTS_TLT" ) );
 
   // Apply and close buttons
   myApply = new QPushButton( tr("APPLY") );
index 0a8510fd2d3e4c486d2f936ef421f6e2a3f5bf19..7e778c2eeffb9613eff6b988909d708fe78e5924 100644 (file)
@@ -2079,6 +2079,10 @@ Polyline should consist from one not closed curve.</translation>
         <source>ALL_OBJECTS</source>
         <translation>All objects</translation>
     </message>
+    <message>
+        <source>ALL_OBJECTS_TLT</source>
+        <translation>Include hidden objects to the list</translation>
+    </message>
     <message>
         <source>APPLY</source>
         <translation>Apply</translation>
@@ -2089,4 +2093,24 @@ Polyline should consist from one not closed curve.</translation>
     </message>
   </context>
 
+  <context>
+    <name>HYDROGUI_OrderedListWidget</name>
+    <message>
+        <source>TOP_TLT</source>
+        <translation>Move the item(s) on top</translation>
+    </message>
+    <message>
+        <source>UP_TLT</source>
+        <translation>Move the item(s) up</translation>
+    </message>
+    <message>
+        <source>DOWN_TLT</source>
+        <translation>Move the item(s) down</translation>
+    </message>
+    <message>
+        <source>BOTTOM_TLT</source>
+        <translation>Move the item(s) on bottom</translation>
+    </message>
+  </context>
+
 </TS>