Generall Drag/Drop interface

This commit is contained in:
jriegel
2014-02-02 21:18:08 +01:00
committed by Stefan Tröger
parent a366ae60e4
commit be619b3e7d
6 changed files with 102 additions and 4 deletions

View File

@@ -58,6 +58,11 @@ public:
virtual bool onDelete(const std::vector<std::string> &);
/// get called if the user hover over a object in the tree
virtual bool allowDrop(const std::vector<const App::DocumentObject*> &objList,Qt::KeyboardModifiers keys,Qt::MouseButtons mouseBts,const QPoint &pos);
/// get called if the user drops some objects
virtual void drop(const std::vector<const App::DocumentObject*> &objList,Qt::KeyboardModifiers keys,Qt::MouseButtons mouseBts,const QPoint &pos);
protected:
/// get called by the container whenever a property has been changed
void onChanged(const App::Property* prop);