diff layer/RegionLayer.cpp @ 1077:5144d7185fb5 spectrogram-minor-refactor

Move LayerGeometryProvider from view to layer
author Chris Cannam
date Thu, 30 Jun 2016 10:59:11 +0100
parents 2adca8f05583
children ee01a4062747
line wrap: on
line diff
--- a/layer/RegionLayer.cpp	Thu Jun 30 10:36:52 2016 +0100
+++ b/layer/RegionLayer.cpp	Thu Jun 30 10:59:11 2016 +0100
@@ -983,14 +983,14 @@
                                    x - paint.fontMetrics().width(vlabel) - 2,
                                    y + paint.fontMetrics().height()/2
                                    - paint.fontMetrics().descent(), 
-                                   vlabel, View::OutlinedText);
+                                   vlabel, LayerGeometryProvider::OutlinedText);
                 
                 QString hlabel = RealTime::frame2RealTime
                     (p.frame, m_model->getSampleRate()).toText(true).c_str();
                 v->drawVisibleText(paint, 
                                    x,
                                    y - h/2 - paint.fontMetrics().descent() - 2,
-                                   hlabel, View::OutlinedText);
+                                   hlabel, LayerGeometryProvider::OutlinedText);
             }
             
             paint.drawLine(x, y-1, x + w, y-1);
@@ -1048,7 +1048,7 @@
                 nextLabelMinX = labelX + paint.fontMetrics().width(label);
             }
 
-            v->drawVisibleText(paint, labelX, labelY, label, View::OutlinedText);
+            v->drawVisibleText(paint, labelX, labelY, label, LayerGeometryProvider::OutlinedText);
         }
     }