Simplification au niveau des methodes selectionChanged

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@245 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
xavierqet
2007-12-22 16:07:14 +00:00
parent 492751508b
commit e3bd116fd7
5 changed files with 9 additions and 27 deletions

View File

@@ -53,7 +53,7 @@ DiagramView::DiagramView(QWidget *parent) : QGraphicsView(parent), is_adding_tex
paste_here = new QAction(QIcon(":/ico/paste.png"), tr("Coller ici"), this);
connect(paste_here, SIGNAL(triggered()), this, SLOT(pasteHere()));
connect(scene, SIGNAL(selectionEmptinessChanged()), this, SLOT(slot_selectionChanged()));
connect(scene, SIGNAL(selectionEmptinessChanged()), this, SIGNAL(selectionChanged()));
connect(&(scene -> border_and_inset), SIGNAL(borderChanged(QRectF, QRectF)), this, SLOT(adjustSceneRect()));
connect(&(scene -> undoStack()), SIGNAL(cleanChanged(bool)), this, SLOT(updateWindowTitle()));
}
@@ -400,13 +400,6 @@ bool DiagramView::open(QString n_fichier, int *erreur) {
}
}
/**
Slot appele lorsque la selection change.
*/
void DiagramView::slot_selectionChanged() {
emit(selectionChanged());
}
/**
Gere la fermeture du schema.
@param event Le QCloseEvent decrivant l'evenement