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"); |