summaryrefslogtreecommitdiff
path: root/src/modlist.cpp
diff options
context:
space:
mode:
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();