Merge pull request #1237 from ispyisail/fix/bugtracker-344-locked-show-text

Fix bugtracker #344: say why a wire's "show text" box is locked
This commit is contained in:
Laurent Trinques
2026-10-02 09:26:56 +02:00
committed by GitHub
+6
View File
@@ -239,6 +239,12 @@ void ConductorPropertiesWidget::setTextLocked(bool locked)
*/
void ConductorPropertiesWidget::setDisabledShowText(const bool &disable) {
ui->m_show_text_cb->setDisabled(disable==true? true : false);
//Say why the box is locked: the setting that locks it is not in this dialog
ui->m_show_text_cb->setToolTip(disable
? tr("Texte visible\n"
"Verrouillé par l'option « Afficher un texte de potentiel par "
"folio » de ce folio, dans Propriétés du folio.")
: tr("Texte visible"));
}
/**