Increase indent for readability.

Signed-off-by: Adam Treat <treat.adam@gmail.com>
This commit is contained in:
Adam Treat 2024-03-08 11:27:13 -05:00 committed by AT
parent 4251b7beaa
commit 8ee68d1b6f

View File

@ -811,13 +811,13 @@ void ModelList::updateData(const QString &id, const QVector<QPair<int, QVariant>
const QVariant value = d.second; const QVariant value = d.second;
switch (role) { switch (role) {
case IdRole: case IdRole:
{ {
if (info->id() != value.toString()) { if (info->id() != value.toString()) {
info->setId(value.toString()); info->setId(value.toString());
shouldSort = true; shouldSort = true;
}
break;
} }
break;
}
case NameRole: case NameRole:
info->setName(value.toString()); break; info->setName(value.toString()); break;
case FilenameRole: case FilenameRole:
@ -863,13 +863,13 @@ void ModelList::updateData(const QString &id, const QVector<QPair<int, QVariant>
case DownloadErrorRole: case DownloadErrorRole:
info->downloadError = value.toString(); break; info->downloadError = value.toString(); break;
case OrderRole: case OrderRole:
{ {
if (info->order != value.toString()) { if (info->order != value.toString()) {
info->order = value.toString(); info->order = value.toString();
shouldSort = true; shouldSort = true;
}
break;
} }
break;
}
case RamrequiredRole: case RamrequiredRole:
info->ramrequired = value.toInt(); break; info->ramrequired = value.toInt(); break;
case ParametersRole: case ParametersRole:
@ -879,21 +879,21 @@ void ModelList::updateData(const QString &id, const QVector<QPair<int, QVariant>
case TypeRole: case TypeRole:
info->setType(value.toString()); break; info->setType(value.toString()); break;
case IsCloneRole: case IsCloneRole:
{ {
if (info->isClone() != value.toBool()) { if (info->isClone() != value.toBool()) {
info->setIsClone(value.toBool()); info->setIsClone(value.toBool());
shouldSort = true; shouldSort = true;
}
break;
} }
break;
}
case IsDiscoveredRole: case IsDiscoveredRole:
{ {
if (info->isDiscovered() != value.toBool()) { if (info->isDiscovered() != value.toBool()) {
info->setIsDiscovered(value.toBool()); info->setIsDiscovered(value.toBool());
shouldSort = true; shouldSort = true;
}
break;
} }
break;
}
case TemperatureRole: case TemperatureRole:
info->setTemperature(value.toDouble()); break; info->setTemperature(value.toDouble()); break;
case TopPRole: case TopPRole:
@ -919,29 +919,29 @@ void ModelList::updateData(const QString &id, const QVector<QPair<int, QVariant>
case SystemPromptRole: case SystemPromptRole:
info->setSystemPrompt(value.toString()); break; info->setSystemPrompt(value.toString()); break;
case LikesRole: case LikesRole:
{ {
if (info->likes() != value.toInt()) { if (info->likes() != value.toInt()) {
info->setLikes(value.toInt()); info->setLikes(value.toInt());
shouldSort = true; shouldSort = true;
}
break;
} }
break;
}
case DownloadsRole: case DownloadsRole:
{ {
if (info->downloads() != value.toInt()) { if (info->downloads() != value.toInt()) {
info->setDownloads(value.toInt()); info->setDownloads(value.toInt());
shouldSort = true; shouldSort = true;
}
break;
} }
break;
}
case RecencyRole: case RecencyRole:
{ {
if (info->recency() != value.toDateTime()) { if (info->recency() != value.toDateTime()) {
info->setRecency(value.toDateTime()); info->setRecency(value.toDateTime());
shouldSort = true; shouldSort = true;
}
break;
} }
break;
}
} }
} }