mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 14:50:53 +01:00
Rapatriement dans la branche 0.3 des revisions 855 a 870.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/branches/0.3@871 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -98,6 +98,27 @@ void OrientationSetWidget::setOrientationSet(const OrientationSet &os) {
|
||||
updateForm();
|
||||
}
|
||||
|
||||
/**
|
||||
@return true si ce widget est en lecture seule, false sinon
|
||||
*/
|
||||
bool OrientationSetWidget::isReadOnly() const {
|
||||
return(!north_orientation -> isEnabled());
|
||||
}
|
||||
|
||||
/**
|
||||
@param ro true pour passer ce widget en lecture seule, false sinon
|
||||
*/
|
||||
void OrientationSetWidget::setReadOnly(bool ro) {
|
||||
north_orientation -> setDisabled(ro);
|
||||
east_orientation -> setDisabled(ro);
|
||||
south_orientation -> setDisabled(ro);
|
||||
west_orientation -> setDisabled(ro);
|
||||
north_default -> setDisabled(ro);
|
||||
east_default -> setDisabled(ro);
|
||||
south_default -> setDisabled(ro);
|
||||
west_default -> setDisabled(ro);
|
||||
}
|
||||
|
||||
/**
|
||||
Slot gerant le changement d'orientation par defaut.
|
||||
L'orientation concernee affiche alors "Possible" et ce statut devient
|
||||
|
||||
Reference in New Issue
Block a user