Remove redundant drag'n'drop interface
In the long time of parallel assembly development an own drag'n'drop interface has been added to master and assembly branch. After merge both have been available. This commit removes one and keeps the more extensive implementation
This commit is contained in:
@@ -564,7 +564,6 @@ void TreeWidget::dropEvent(QDropEvent *event)
|
||||
// now add the object to the target object
|
||||
vp->dropObject(obj);
|
||||
}
|
||||
targetItemObj->drop(dropObjects,event->keyboardModifiers(),event->mouseButtons(),event->pos());
|
||||
}
|
||||
else if (targetitem->type() == TreeWidget::DocumentType) {
|
||||
// Open command
|
||||
@@ -1444,15 +1443,6 @@ void DocumentObjectItem::testStatus()
|
||||
this->setIcon(0, icon_mod);
|
||||
}
|
||||
|
||||
bool DocumentObjectItem::allowDrop(const std::vector<const App::DocumentObject*> &objList,Qt::KeyboardModifiers keys,Qt::MouseButtons mouseBts,const QPoint &pos)
|
||||
{
|
||||
return viewObject->allowDrop(objList,keys,mouseBts,pos);
|
||||
}
|
||||
void DocumentObjectItem::drop(const std::vector<const App::DocumentObject*> &objList,Qt::KeyboardModifiers keys,Qt::MouseButtons mouseBts,const QPoint &pos)
|
||||
{
|
||||
viewObject->drop(objList,keys,mouseBts,pos);
|
||||
}
|
||||
|
||||
void DocumentObjectItem::displayStatusInfo()
|
||||
{
|
||||
App::DocumentObject* Obj = viewObject->getObject();
|
||||
|
||||
Reference in New Issue
Block a user