From 8ee68d1b6ffda88578651f053a5814cd5b851cde Mon Sep 17 00:00:00 2001 From: Adam Treat Date: Fri, 8 Mar 2024 11:27:13 -0500 Subject: [PATCH] Increase indent for readability. Signed-off-by: Adam Treat --- gpt4all-chat/modellist.cpp | 84 +++++++++++++++++++------------------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/gpt4all-chat/modellist.cpp b/gpt4all-chat/modellist.cpp index c4a00a13..13d02d24 100644 --- a/gpt4all-chat/modellist.cpp +++ b/gpt4all-chat/modellist.cpp @@ -811,13 +811,13 @@ void ModelList::updateData(const QString &id, const QVector const QVariant value = d.second; switch (role) { case IdRole: - { - if (info->id() != value.toString()) { - info->setId(value.toString()); - shouldSort = true; + { + if (info->id() != value.toString()) { + info->setId(value.toString()); + shouldSort = true; + } + break; } - break; - } case NameRole: info->setName(value.toString()); break; case FilenameRole: @@ -863,13 +863,13 @@ void ModelList::updateData(const QString &id, const QVector case DownloadErrorRole: info->downloadError = value.toString(); break; case OrderRole: - { - if (info->order != value.toString()) { - info->order = value.toString(); - shouldSort = true; + { + if (info->order != value.toString()) { + info->order = value.toString(); + shouldSort = true; + } + break; } - break; - } case RamrequiredRole: info->ramrequired = value.toInt(); break; case ParametersRole: @@ -879,21 +879,21 @@ void ModelList::updateData(const QString &id, const QVector case TypeRole: info->setType(value.toString()); break; case IsCloneRole: - { - if (info->isClone() != value.toBool()) { - info->setIsClone(value.toBool()); - shouldSort = true; + { + if (info->isClone() != value.toBool()) { + info->setIsClone(value.toBool()); + shouldSort = true; + } + break; } - break; - } case IsDiscoveredRole: - { - if (info->isDiscovered() != value.toBool()) { - info->setIsDiscovered(value.toBool()); - shouldSort = true; + { + if (info->isDiscovered() != value.toBool()) { + info->setIsDiscovered(value.toBool()); + shouldSort = true; + } + break; } - break; - } case TemperatureRole: info->setTemperature(value.toDouble()); break; case TopPRole: @@ -919,29 +919,29 @@ void ModelList::updateData(const QString &id, const QVector case SystemPromptRole: info->setSystemPrompt(value.toString()); break; case LikesRole: - { - if (info->likes() != value.toInt()) { - info->setLikes(value.toInt()); - shouldSort = true; + { + if (info->likes() != value.toInt()) { + info->setLikes(value.toInt()); + shouldSort = true; + } + break; } - break; - } case DownloadsRole: - { - if (info->downloads() != value.toInt()) { - info->setDownloads(value.toInt()); - shouldSort = true; + { + if (info->downloads() != value.toInt()) { + info->setDownloads(value.toInt()); + shouldSort = true; + } + break; } - break; - } case RecencyRole: - { - if (info->recency() != value.toDateTime()) { - info->setRecency(value.toDateTime()); - shouldSort = true; + { + if (info->recency() != value.toDateTime()) { + info->setRecency(value.toDateTime()); + shouldSort = true; + } + break; } - break; - } } }