Ajout de la possibilite de modifier la hauteur du schema

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@53 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavierqet
2007-02-03 02:00:18 +00:00
parent 039949c0ee
commit 1e486712cc
6 changed files with 68 additions and 13 deletions

View File

@@ -526,3 +526,24 @@ void DiagramView::removeColumn() {
// rafraichit la vue
scene -> update(sceneRect());
}
void DiagramView::expand() {
// ajoute 10 pixels
scene -> border_and_inset.setColumnsHeight(scene -> border_and_inset.columnsHeight() + 20.0);
// met a jour la zone affichee par la vue
QRectF sr = sceneRect();
sr.setHeight(20.0 + sr.height());
setSceneRect(sr);
// rafraichit la vue
scene -> update(sceneRect());
}
void DiagramView::shrink() {
// enleve 10 pixels
scene -> border_and_inset.setColumnsHeight(scene -> border_and_inset.columnsHeight() - 20.0);
// rafraichit la vue
scene -> update(sceneRect());
}