comparison view/ViewProxy.h @ 1078:ee01a4062747 spectrogram-minor-refactor

Move drawVisibleText to PaintAssistant
author Chris Cannam
date Thu, 30 Jun 2016 12:40:22 +0100
parents 5144d7185fb5
children 179ea8a2f650
comparison
equal deleted inserted replaced
1077:5144d7185fb5 1078:ee01a4062747
126 126
127 virtual bool shouldShowFeatureLabels() const { 127 virtual bool shouldShowFeatureLabels() const {
128 return m_view->shouldShowFeatureLabels(); 128 return m_view->shouldShowFeatureLabels();
129 } 129 }
130 130
131 virtual void drawVisibleText(QPainter &p, int x, int y,
132 QString text, TextStyle style) const {
133 m_view->drawVisibleText(p, x, y, text, style);
134 }
135
136 virtual void drawMeasurementRect(QPainter &p, const Layer *layer, 131 virtual void drawMeasurementRect(QPainter &p, const Layer *layer,
137 QRect rect, bool focus) const { 132 QRect rect, bool focus) const {
138 m_view->drawMeasurementRect(p, layer, rect, focus); 133 m_view->drawMeasurementRect(p, layer, rect, focus);
139 } 134 }
140 135