From 817365e15e087b3f6bf4db4e278599890d9378de Mon Sep 17 00:00:00 2001 From: mzn Date: Wed, 2 Apr 2014 11:44:53 +0000 Subject: [PATCH] Fix for bug #395: Tooltips of buttons and checkbox are absent. --- src/HYDROGUI/HYDROGUI_OrderedListWidget.cxx | 4 ++++ src/HYDROGUI/HYDROGUI_ZLevelsDlg.cxx | 1 + src/HYDROGUI/resources/HYDROGUI_msg_en.ts | 24 +++++++++++++++++++++ 3 files changed, 29 insertions(+) diff --git a/src/HYDROGUI/HYDROGUI_OrderedListWidget.cxx b/src/HYDROGUI/HYDROGUI_OrderedListWidget.cxx index e1b2e7eb..1308378f 100644 --- a/src/HYDROGUI/HYDROGUI_OrderedListWidget.cxx +++ b/src/HYDROGUI/HYDROGUI_OrderedListWidget.cxx @@ -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 diff --git a/src/HYDROGUI/HYDROGUI_ZLevelsDlg.cxx b/src/HYDROGUI/HYDROGUI_ZLevelsDlg.cxx index 81b8f277..4a50f528 100644 --- a/src/HYDROGUI/HYDROGUI_ZLevelsDlg.cxx +++ b/src/HYDROGUI/HYDROGUI_ZLevelsDlg.cxx @@ -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") ); diff --git a/src/HYDROGUI/resources/HYDROGUI_msg_en.ts b/src/HYDROGUI/resources/HYDROGUI_msg_en.ts index 0a8510fd..7e778c2e 100644 --- a/src/HYDROGUI/resources/HYDROGUI_msg_en.ts +++ b/src/HYDROGUI/resources/HYDROGUI_msg_en.ts @@ -2079,6 +2079,10 @@ Polyline should consist from one not closed curve. ALL_OBJECTS All objects + + ALL_OBJECTS_TLT + Include hidden objects to the list + APPLY Apply @@ -2089,4 +2093,24 @@ Polyline should consist from one not closed curve. + + HYDROGUI_OrderedListWidget + + TOP_TLT + Move the item(s) on top + + + UP_TLT + Move the item(s) up + + + DOWN_TLT + Move the item(s) down + + + BOTTOM_TLT + Move the item(s) on bottom + + + -- 2.39.2