Mercurial > hg > svgui
comparison layer/ColourDatabase.cpp @ 1266:a34a2a25907c
Untabify
author | Chris Cannam |
---|---|
date | Thu, 01 Mar 2018 18:02:22 +0000 |
parents | e0f08e108064 |
children | f5566f7271fe |
comparison
equal
deleted
inserted
replaced
1265:6e724c81f18f | 1266:a34a2a25907c |
---|---|
158 QString colourSpec, | 158 QString colourSpec, |
159 QString darkbg) | 159 QString darkbg) |
160 { | 160 { |
161 int index = -1; | 161 int index = -1; |
162 if (colourSpec != "") { | 162 if (colourSpec != "") { |
163 QColor colour(colourSpec); | 163 QColor colour(colourSpec); |
164 index = getColourIndex(colour); | 164 index = getColourIndex(colour); |
165 if (index < 0) { | 165 if (index < 0) { |
166 index = addColour(colour, | 166 index = addColour(colour, |
167 colourName == "" ? colourSpec : colourName); | 167 colourName == "" ? colourSpec : colourName); |
168 } | 168 } |