diff view/View.h @ 1044:4e5c1c326794 3.0-integration

Make ViewProxy objects share the ids of their Views; fixes incorrect colour scale drawing
author Chris Cannam
date Tue, 09 Feb 2016 10:59:36 +0000
parents 0be17aafa935
children f535f6e5dbb0
line wrap: on
line diff
--- a/view/View.h	Thu Feb 04 11:18:08 2016 +0000
+++ b/view/View.h	Tue Feb 09 10:59:36 2016 +0000
@@ -62,6 +62,12 @@
      * be managed elsewhere (e.g. by the Document).
      */
     virtual ~View();
+
+    /**
+     * Retrieve the id of this object. Views have their own unique
+     * ids, but ViewProxy objects share the id of their View.
+     */
+    int getId() const { return m_id; }
     
     /**
      * Retrieve the first visible sample frame on the widget.