mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-22 09:40:52 +01:00
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user