Gui: [skip ci] let view provider to decide to whether open a transaction on double-click
The sketcher view provider doesn't need a transaction on double-click or otherwise shows a useless entry in the undo dialog which when undoing leads to weird behaviour
This commit is contained in:
@@ -219,7 +219,11 @@ public:
|
||||
virtual void setupContextMenu(QMenu *menu, QObject *receiver, const char *member);
|
||||
/// is called when the Provider is in edit and a deletion request occurs
|
||||
virtual bool onDelete(const std::vector<std::string> &);
|
||||
/// is called by the tree if the user double click on the object
|
||||
/// Is called by the tree if the user double clicks on the object. It returns the string
|
||||
/// for the transaction that will be shown in the undo/redo dialog.
|
||||
/// If null is returned then no transaction will be opened.
|
||||
virtual const char* getTransactionText() const { return nullptr; }
|
||||
/// is called by the tree if the user double clicks on the object
|
||||
virtual bool doubleClicked(void);
|
||||
/// is called when the Provider is in edit and the mouse is moved
|
||||
virtual bool mouseMove(const SbVec2s &pos, Gui::View3DInventorViewer *viewer);
|
||||
|
||||
Reference in New Issue
Block a user