Using the typedef ModelItemValues for "QHash<int, QVariant>".
This commit is contained in:
@ -111,8 +111,7 @@ void GenericCore::saveItems() {
|
||||
void GenericCore::importCSVFile(const QString& filePath) {
|
||||
qInfo() << "importing items from CSV...";
|
||||
qDebug() << "filePath:" << filePath;
|
||||
const QList<QHash<int, QVariant>> itemValuesList =
|
||||
FileHandler::getItemValuesFromCSVFile(filePath);
|
||||
const QList<ModelItemValues> itemValuesList = FileHandler::getItemValuesFromCSVFile(filePath);
|
||||
// NEXT inform UI on errors
|
||||
if (itemValuesList.isEmpty()) {
|
||||
qDebug() << "No items found. Doing nothing...";
|
||||
|
||||
Reference in New Issue
Block a user