// "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") );
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 );
}