Remove Two methods of ElementsLocation

git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@4389 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
blacksun
2016-03-20 15:54:28 +00:00
parent 4fe4509885
commit 10fcaa09d1
6 changed files with 16 additions and 51 deletions

View File

@@ -279,13 +279,14 @@ void DiagramView::dropEvent(QDropEvent *e) {
Handle the drop of an element.
@param e the QDropEvent describing the current drag'n drop
*/
void DiagramView::handleElementDrop(QDropEvent *e) {
// fetch the element location from the drop event
void DiagramView::handleElementDrop(QDropEvent *e)
{
//fetch the element location from the drop event
QString elmt_path = e -> mimeData() -> text();
ElementsLocation location(ElementsLocation::locationFromString(elmt_path));
ElementsLocation location(elmt_path);
// verifie qu'il existe un element correspondant a cet emplacement
// verifie qu'il existe un element correspondant a cet emplacement
ElementsCollectionItem *dropped_item = QETApp::collectionItem(location);
if (!dropped_item) return;