mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 05:00:33 +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 <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.
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user