mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-19 23:20:52 +01:00
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:
6
CREDIT
Normal file
6
CREDIT
Normal file
@@ -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.
|
||||||
@@ -97,6 +97,7 @@ void DiagramView::deleteSelection() {
|
|||||||
DiagramContent removed_content = scene -> selectedContent();
|
DiagramContent removed_content = scene -> selectedContent();
|
||||||
scene -> clearSelection();
|
scene -> clearSelection();
|
||||||
scene -> undoStack().push(new DeleteElementsCommand(scene, removed_content));
|
scene -> undoStack().push(new DeleteElementsCommand(scene, removed_content));
|
||||||
|
adjustSceneRect();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -149,6 +150,7 @@ void DiagramView::dropEvent(QDropEvent *e) {
|
|||||||
if (etat) delete el;
|
if (etat) delete el;
|
||||||
else {
|
else {
|
||||||
diagram() -> undoStack().push(new AddElementCommand(diagram(), el, mapToScene(e -> pos())));
|
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()) {
|
if (content_pasted.count()) {
|
||||||
scene -> clearSelection();
|
scene -> clearSelection();
|
||||||
scene -> undoStack().push(new PasteDiagramCommand(scene, content_pasted));
|
scene -> undoStack().push(new PasteDiagramCommand(scene, content_pasted));
|
||||||
|
adjustSceneRect();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -266,6 +269,7 @@ void DiagramView::mousePressEvent(QMouseEvent *e) {
|
|||||||
dti -> setPlainText("_");
|
dti -> setPlainText("_");
|
||||||
dti -> previous_text = "_";
|
dti -> previous_text = "_";
|
||||||
scene -> undoStack().push(new AddTextCommand(scene, dti, e -> pos()));
|
scene -> undoStack().push(new AddTextCommand(scene, dti, e -> pos()));
|
||||||
|
adjustSceneRect();
|
||||||
is_adding_text = false;
|
is_adding_text = false;
|
||||||
emit(textAdded(false));
|
emit(textAdded(false));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user