mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2026-10-03 01:04:13 +02:00
Fix bugtracker #344: say why a wire's "show text" box is locked
The conductor properties dialog disables the "Texte visible" checkbox when the folio has "Afficher un texte de potentiel par folio" on, but it also hides that option, so nothing told the user why the box could not be ticked. A wire saved with its text off then looked impossible to fix. The locked box's tooltip now names the folio option and where to change it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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"));
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user