comparison layer/SingleColourLayer.cpp @ 978:64c2b3a4435a 3.0-integration

Merge from branch osx-retina
author Chris Cannam
date Fri, 26 Jun 2015 14:10:40 +0100
parents a5488775f880
children a34a2a25907c
comparison
equal deleted inserted replaced
977:f40ccbf228c2 978:64c2b3a4435a
135 setBaseColour(value); 135 setBaseColour(value);
136 } 136 }
137 } 137 }
138 138
139 void 139 void
140 SingleColourLayer::setDefaultColourFor(View *v) 140 SingleColourLayer::setDefaultColourFor(LayerGeometryProvider *v)
141 { 141 {
142 #ifdef DEBUG_COLOUR_SELECTION 142 #ifdef DEBUG_COLOUR_SELECTION
143 SVDEBUG << "SingleColourLayer::setDefaultColourFor: m_colourExplicitlySet = " << m_colourExplicitlySet << ", m_defaultColourSet " << m_defaultColourSet << endl; 143 SVDEBUG << "SingleColourLayer::setDefaultColourFor: m_colourExplicitlySet = " << m_colourExplicitlySet << ", m_defaultColourSet " << m_defaultColourSet << endl;
144 #endif 144 #endif
145 145
242 { 242 {
243 return ColourDatabase::getInstance()->getColour(m_colour); 243 return ColourDatabase::getInstance()->getColour(m_colour);
244 } 244 }
245 245
246 QColor 246 QColor
247 SingleColourLayer::getBackgroundQColor(View *v) const 247 SingleColourLayer::getBackgroundQColor(LayerGeometryProvider *v) const
248 { 248 {
249 return v->getBackground(); 249 return v->getBackground();
250 } 250 }
251 251
252 QColor 252 QColor
253 SingleColourLayer::getForegroundQColor(View *v) const 253 SingleColourLayer::getForegroundQColor(LayerGeometryProvider *v) const
254 { 254 {
255 return v->getForeground(); 255 return v->getForeground();
256 } 256 }
257 257
258 std::vector<QColor> 258 std::vector<QColor>
259 SingleColourLayer::getPartialShades(View *v) const 259 SingleColourLayer::getPartialShades(LayerGeometryProvider *v) const
260 { 260 {
261 std::vector<QColor> s; 261 std::vector<QColor> s;
262 QColor base = getBaseQColor(); 262 QColor base = getBaseQColor();
263 QColor bg = getBackgroundQColor(v); 263 QColor bg = getBackgroundQColor(v);
264 for (int i = 0; i < 3; ++i) { 264 for (int i = 0; i < 3; ++i) {