mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
ConductorPropertiesWidget: fixed a UI consistency bug.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@1885 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -281,6 +281,7 @@ bool ConductorPropertiesWidget::isReadOnly() const {
|
|||||||
@param ro true pour passer ce widget en lecture seule, false sinon
|
@param ro true pour passer ce widget en lecture seule, false sinon
|
||||||
*/
|
*/
|
||||||
void ConductorPropertiesWidget::setReadOnly(bool ro) {
|
void ConductorPropertiesWidget::setReadOnly(bool ro) {
|
||||||
|
// enable or disable all child widgets according to the read only state
|
||||||
simple -> setDisabled(ro);
|
simple -> setDisabled(ro);
|
||||||
multiline -> setDisabled(ro);
|
multiline -> setDisabled(ro);
|
||||||
singleline -> setDisabled(ro);
|
singleline -> setDisabled(ro);
|
||||||
@@ -291,6 +292,10 @@ void ConductorPropertiesWidget::setReadOnly(bool ro) {
|
|||||||
neutral_checkbox -> setDisabled(ro);
|
neutral_checkbox -> setDisabled(ro);
|
||||||
color_button -> setDisabled(ro);
|
color_button -> setDisabled(ro);
|
||||||
dashed_checkbox -> setDisabled(ro);
|
dashed_checkbox -> setDisabled(ro);
|
||||||
|
// if the widget is not read-only, we still need to disable some widgets for consistency
|
||||||
|
if (!ro) {
|
||||||
|
updateDisplay();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user