Ajustements du sceneRect plus frquents dans l'editeur de schemas.

Ajout du fichier CREDIT avec le texte suivant :
  Merci a Trolltech pour la bibliotheque Qt ( http://trolltech.com/ ), sous licence GNU/GPL.
  Merci a Everaldo Coelho pour le theme d'icones Crystal SVG ( http://www.everaldo.com/crystal/ ) sous licence LGPL, ainsi qu'au projet KDE ( http://www.kde.org/ ).
  Merci a Loic pour ses explications d'ordre mathematique.


git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@244 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavierqet
2007-12-22 14:59:38 +00:00
parent 8576a3a9d2
commit 492751508b
2 changed files with 10 additions and 0 deletions

6
CREDIT Normal file
View File

@@ -0,0 +1,6 @@
Merci <20> Trolltech pour la biblioth<74>que Qt ( http://trolltech.com/ ), sous
licence GNU/GPL.
Merci <20> Everaldo Coelho pour le th<74>me d'ic<69>nes Crystal SVG (
http://www.everaldo.com/crystal/ ) sous licence LGPL, ainsi qu'au projet KDE (
http://www.kde.org/ ).
Merci <20> Loic pour ses explications d'ordre math<74>matique.

View File

@@ -97,6 +97,7 @@ void DiagramView::deleteSelection() {
DiagramContent removed_content = scene -> selectedContent();
scene -> clearSelection();
scene -> undoStack().push(new DeleteElementsCommand(scene, removed_content));
adjustSceneRect();
}
/**
@@ -149,6 +150,7 @@ void DiagramView::dropEvent(QDropEvent *e) {
if (etat) delete el;
else {
diagram() -> undoStack().push(new AddElementCommand(diagram(), el, mapToScene(e -> pos())));
adjustSceneRect();
}
}
@@ -246,6 +248,7 @@ void DiagramView::paste(const QPointF &pos, QClipboard::Mode clipboard_mode) {
if (content_pasted.count()) {
scene -> clearSelection();
scene -> undoStack().push(new PasteDiagramCommand(scene, content_pasted));
adjustSceneRect();
}
}
@@ -266,6 +269,7 @@ void DiagramView::mousePressEvent(QMouseEvent *e) {
dti -> setPlainText("_");
dti -> previous_text = "_";
scene -> undoStack().push(new AddTextCommand(scene, dti, e -> pos()));
adjustSceneRect();
is_adding_text = false;
emit(textAdded(false));
}