mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 05:00:33 +01:00
Optimisation de la selection apres un copier-coller dans l'editeur d'element.
git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@596 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -681,14 +681,22 @@ void ElementScene::paste() {
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
Selectionne une liste de parties
|
||||
@param content liste des parties a selectionner
|
||||
*/
|
||||
void ElementScene::slot_select(const ElementContent &content) {
|
||||
blockSignals(true);
|
||||
foreach(QGraphicsItem *qgi, content) qgi -> setSelected(true);
|
||||
blockSignals(false);
|
||||
emit(selectionChanged());
|
||||
}
|
||||
|
||||
/**
|
||||
Selectionne tout
|
||||
*/
|
||||
void ElementScene::slot_selectAll() {
|
||||
blockSignals(true);
|
||||
foreach(QGraphicsItem *qgi, items()) qgi -> setSelected(true);
|
||||
blockSignals(false);
|
||||
emit(selectionChanged());
|
||||
slot_select(items());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user