diff --git a/CREDIT b/CREDIT new file mode 100644 index 000000000..32d98d145 --- /dev/null +++ b/CREDIT @@ -0,0 +1,6 @@ +Merci à Trolltech pour la bibliothèque Qt ( http://trolltech.com/ ), sous +licence GNU/GPL. +Merci à Everaldo Coelho pour le thème d'icônes Crystal SVG ( +http://www.everaldo.com/crystal/ ) sous licence LGPL, ainsi qu'au projet KDE ( +http://www.kde.org/ ). +Merci à Loic pour ses explications d'ordre mathématique. diff --git a/diagramview.cpp b/diagramview.cpp index c6aa0edcf..72f917e13 100644 --- a/diagramview.cpp +++ b/diagramview.cpp @@ -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)); }