changeset 1810:ee3b248bda25

Forward getIndexForEvent
author Chris Cannam
date Fri, 22 Nov 2019 14:12:16 +0000
parents 73447d746db3
children 796ae7eecced
files data/model/NoteModel.h
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/data/model/NoteModel.h	Tue Oct 29 12:46:43 2019 +0000
+++ b/data/model/NoteModel.h	Fri Nov 22 14:12:16 2019 +0000
@@ -197,6 +197,9 @@
         return m_events.getNearestEventMatching
             (startSearchAt, predicate, direction, found);
     }
+    int getIndexForEvent(const Event &e) {
+        return m_events.getIndexForEvent(e);
+    }
 
     /**
      * Editing methods.