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:
@@ -34,10 +34,12 @@ HotspotEditor::HotspotEditor(QWidget *parent) :
|
||||
|
||||
sb_width = new QSpinBox();
|
||||
sb_width -> setMinimum(1);
|
||||
sb_width -> setMaximum(1000);
|
||||
sb_width -> setValue(3);
|
||||
sb_width -> setSuffix(tr(" \32710 px"));
|
||||
sb_height = new QSpinBox();
|
||||
sb_height -> setMinimum(1);
|
||||
sb_height -> setMaximum(1000);
|
||||
sb_height -> setValue(7);
|
||||
sb_height -> setSuffix(tr(" \32710 px"));
|
||||
|
||||
@@ -223,6 +225,24 @@ QPoint HotspotEditor::offsetParts() const {
|
||||
else return(old_hotspot - hotspot());
|
||||
}
|
||||
|
||||
/**
|
||||
@return true si ce widget est en lecture seule, false sinon
|
||||
*/
|
||||
bool HotspotEditor::isReadOnly() const {
|
||||
return(sb_width -> isReadOnly());
|
||||
}
|
||||
|
||||
/**
|
||||
@param ro true pour passer ce widget en lecture seule, false sinon
|
||||
*/
|
||||
void HotspotEditor::setReadOnly(bool ro) {
|
||||
sb_width -> setReadOnly(ro);
|
||||
sb_height -> setReadOnly(ro);
|
||||
sb_hotspot_x -> setReadOnly(ro);
|
||||
sb_hotspot_y -> setReadOnly(ro);
|
||||
hotspot_sync -> setDisabled(ro);
|
||||
}
|
||||
|
||||
/**
|
||||
Met a jour le schema
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user