add double click handling to the PythonViewProvider template
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user