summaryrefslogtreecommitdiff
path: root/src/modlist.cpp
diff options
context:
space:
mode:
authorJeremy Rimpo <jeremy.rimpo@servermonkey.com>2023-09-21 17:43:29 -0500
committerJeremy Rimpo <jeremy.rimpo@servermonkey.com>2023-09-21 17:43:29 -0500
commitd2e48ed72e3526c08580d5c4b3531778267532c5 (patch)
tree49e8e02641055f6f0ed46d9467a288868f7f1262 /src/modlist.cpp
parent133c072eb7f63e807f2a211804537f59d1f8b0ed (diff)
Fix rebase issues
Diffstat (limited to 'src/modlist.cpp')
-rw-r--r--src/modlist.cpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/modlist.cpp b/src/modlist.cpp
index 41d679d9..9f64cc71 100644
--- a/src/modlist.cpp
+++ b/src/modlist.cpp
@@ -285,10 +285,11 @@ QVariant ModList::data(const QModelIndex& modelIndex, int role) const
} else if (role == GroupingRole) {
if (column == COL_CATEGORY) {
QVariantList categoryNames;
- std::set<int> categories = modInfo->getCategories();
+ std::set<int> categories = modInfo->getCategories();
CategoryFactory* categoryFactory = CategoryFactory::instance();
for (auto iter = categories.begin(); iter != categories.end(); ++iter) {
- categoryNames.append(categoryFactory->getCategoryName(categoryFactory->getCategoryIndex(*iter)));
+ categoryNames.append(
+ categoryFactory->getCategoryName(categoryFactory->getCategoryIndex(*iter)));
}
if (categoryNames.count() != 0) {
return categoryNames;
@@ -453,7 +454,10 @@ QVariant ModList::data(const QModelIndex& modelIndex, int role) const
categoryString << " , ";
}
try {
- categoryString << "<span style=\"white-space: nowrap;\"><i>" << ToWString(categoryFactory->getCategoryName(categoryFactory->getCategoryIndex(*catIter))) << "</font></span>";
+ categoryString << "<span style=\"white-space: nowrap;\"><i>"
+ << ToWString(categoryFactory->getCategoryName(
+ categoryFactory->getCategoryIndex(*catIter)))
+ << "</font></span>";
} catch (const std::exception& e) {
log::error("failed to generate tooltip: {}", e.what());
return QString();