@@ -82,7 +82,14 void DataSourceController::setDataProvider(const QUuid &dataSourceUid, | |||
|
82 | 82 | void DataSourceController::loadProductItem(const QUuid &dataSourceUid, |
|
83 | 83 | const DataSourceItem &productItem) noexcept |
|
84 | 84 | { |
|
85 | /// @todo ALX | |
|
85 | if (productItem.type() == DataSourceItemType::PRODUCT) { | |
|
86 | /// Retrieves the data provider of the data source (if any) | |
|
87 | auto it = impl->m_DataProviders.find(dataSourceUid); | |
|
88 | auto dataProvider = (it != impl->m_DataProviders.end()) ? it->second : nullptr; | |
|
89 | } | |
|
90 | else { | |
|
91 | qCWarning(LOG_DataSourceController()) << tr("Can't load an item that is not a product"); | |
|
92 | } | |
|
86 | 93 | } |
|
87 | 94 | |
|
88 | 95 | void DataSourceController::initialize() |
General Comments 0
You need to be logged in to leave comments.
Login now