From: mzn Date: Fri, 4 Apr 2014 06:11:04 +0000 (+0000) Subject: Fix for bug #395: more user friendly tooltip for the check box. X-Git-Tag: BR_hydro_v1_0_1~9 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c48c1c57946f19c365b2a0e0cf9eba3bbc9bbdae;p=modules%2Fhydro.git Fix for bug #395: more user friendly tooltip for the check box. --- diff --git a/src/HYDROGUI/HYDROGUI_ZLevelsDlg.cxx b/src/HYDROGUI/HYDROGUI_ZLevelsDlg.cxx index 4a50f528..e44c189c 100644 --- a/src/HYDROGUI/HYDROGUI_ZLevelsDlg.cxx +++ b/src/HYDROGUI/HYDROGUI_ZLevelsDlg.cxx @@ -54,7 +54,6 @@ 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") ); @@ -120,5 +119,10 @@ QList HYDROGUI_ZLevelsDlg::getObjects() const void HYDROGUI_ZLevelsDlg::onStateChanged() { bool isAll = myAllObjects->isChecked(); + + QString aToolTip = isAll ? tr( "ALL_OBJECTS_CHECKED_TLT" ) : + tr( "ALL_OBJECTS_UNCHECKED_TLT" ); + myAllObjects->setToolTip( aToolTip ); + myListWidget->setHiddenObjectsShown( isAll ); }