src/libraries.cpp

changeset 201
5d201ee4a9c3
parent 112
5760cbb32bc0
child 205
1a4342d80de7
equal deleted inserted replaced
200:ca23936b455b 201:5d201ee4a9c3
218 /** 218 /**
219 * @brief Iterates over libraries and loads LDConfig.ldr from each of them. 219 * @brief Iterates over libraries and loads LDConfig.ldr from each of them.
220 * @param errors Where to stream any encountered errors 220 * @param errors Where to stream any encountered errors
221 * @return color table 221 * @return color table
222 */ 222 */
223 ldraw::ColorTable LibraryManager::loadColorTable(QTextStream& errors) 223 ldraw::ColorTable LibraryManager::loadColorTable(QTextStream& errors) const
224 { 224 {
225 ldraw::ColorTable result; 225 ldraw::ColorTable result;
226 for (const Library& library : this->libraries) 226 for (const Library& library : this->libraries)
227 { 227 {
228 const QString path = library.path.filePath("LDConfig.ldr"); 228 const QString path = library.path.filePath("LDConfig.ldr");

mercurial