add double click handling to the PythonViewProvider template

This commit is contained in:
jriegel
2013-08-04 19:20:54 +02:00
parent bd196395db
commit 1b7acb839b
2 changed files with 45 additions and 0 deletions

View File

@@ -52,6 +52,7 @@ public:
std::vector<Base::Vector3d> getSelectionShape(const char* Element) const;
bool setEdit(int ModNum);
bool unsetEdit(int ModNum);
bool doubleClicked(void);
/** @name Update data methods*/
//@{
@@ -308,6 +309,15 @@ protected:
if (!ok) ViewProviderT::unsetEdit(ModNum);
}
virtual bool doubleClicked(void)
{
bool ok = imp->doubleClicked();
if (!ok)
return ViewProviderT::doubleClicked();
else
return true;
}
private:
ViewProviderPythonFeatureImp* imp;
App::DynamicProperty *props;