diff base/Layer.h @ 41:2b6412c1e724

* Further MainWindow -> Document refactoring
author Chris Cannam
date Wed, 08 Mar 2006 12:38:28 +0000
parents b2d1a61ab916
children bac8b14ab355
line wrap: on
line diff
--- a/base/Layer.h	Mon Mar 06 17:20:25 2006 +0000
+++ b/base/Layer.h	Wed Mar 08 12:38:28 2006 +0000
@@ -43,6 +43,10 @@
     virtual ~Layer();
 
     virtual const Model *getModel() const = 0;
+    virtual Model *getModel() {
+	return const_cast<Model *>(const_cast<const Layer *>(this)->getModel());
+    }
+
     virtual const ZoomConstraint *getZoomConstraint() const { return 0; }
     virtual void paint(View *, QPainter &, QRect) const = 0;