diff layer/Layer.h @ 255:e175ade2d6b0

* double-click in navigate mode relocates the centre frame (closing #1734854)
author Chris Cannam
date Wed, 13 Jun 2007 09:19:33 +0000
parents 28c8e8e3c537
children 6d113226bb4c
line wrap: on
line diff
--- a/layer/Layer.h	Mon Jun 11 12:14:52 2007 +0000
+++ b/layer/Layer.h	Wed Jun 13 09:19:33 2007 +0000
@@ -156,7 +156,12 @@
     virtual void editDrag(View *, QMouseEvent *) { }
     virtual void editEnd(View *, QMouseEvent *) { }
 
-    virtual void editOpen(View *, QMouseEvent *) { } // on double-click
+    /**
+     * Open an editor on the item under the mouse (e.g. on
+     * double-click).  If there is no item or editing is not
+     * supported, return false.
+     */
+    virtual bool editOpen(View *, QMouseEvent *) { return false; }
 
     virtual void moveSelection(Selection, size_t /* newStartFrame */) { }
     virtual void resizeSelection(Selection, Selection /* newSize */) { }