summaryrefslogtreecommitdiff
path: root/src/pluginlist.cpp
diff options
context:
space:
mode:
authorJeremy Rimpo <jrim@rimpo.org>2023-10-18 23:02:16 -0500
committerJeremy Rimpo <jrim@rimpo.org>2023-10-18 23:08:49 -0500
commit8f6ba13fbc57d9f4793383a1402afd32923a9f04 (patch)
tree12876989d692d49796eb542dfc4a5a5facbe0029 /src/pluginlist.cpp
parent2f5cca5c60bf9ea62ccdddb45243ee163f6b227d (diff)
Use hasNoRecords
Diffstat (limited to 'src/pluginlist.cpp')
-rw-r--r--src/pluginlist.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/pluginlist.cpp b/src/pluginlist.cpp
index b944caf7..83ecd70b 100644
--- a/src/pluginlist.cpp
+++ b/src/pluginlist.cpp
@@ -1016,13 +1016,13 @@ bool PluginList::isOverlayFlagged(const QString& name) const
}
}
-bool PluginList::isDummy(const QString& name) const
+bool PluginList::hasNoRecords(const QString& name) const
{
auto iter = m_ESPsByName.find(name);
if (iter == m_ESPsByName.end()) {
return false;
} else {
- return m_ESPs[iter->second].isDummy;
+ return m_ESPs[iter->second].hasNoRecords;
}
}
@@ -1245,7 +1245,7 @@ QVariant PluginList::fontData(const QModelIndex& modelIndex) const
result.setItalic(true);
}
- if (m_ESPs[index].isDummy)
+ if (m_ESPs[index].hasNoRecords)
result.setStrikeOut(true);
return result;
@@ -1348,7 +1348,7 @@ QVariant PluginList::tooltipData(const QModelIndex& modelIndex) const
// "existing records in memory. It takes no memory space.");
// }
- if (esp.isDummy) {
+ if (esp.hasNoRecords) {
toolTip += "<br><br>" + tr("This is a dummy plugin. It contains no records and is "
"typically used to load a paired archive file.");
}
@@ -1804,7 +1804,7 @@ PluginList::ESPInfo::ESPInfo(const QString& name, bool forceLoaded, bool forceEn
isOverlayFlagged = overlaySupported && file.isOverlay();
isLightFlagged =
lightSupported && !isOverlayFlagged && file.isLight(overlaySupported);
- isDummy = file.isDummy();
+ hasNoRecords = file.isDummy();
author = QString::fromLatin1(file.author().c_str());
description = QString::fromLatin1(file.description().c_str());
@@ -1819,7 +1819,7 @@ PluginList::ESPInfo::ESPInfo(const QString& name, bool forceLoaded, bool forceEn
isMasterFlagged = false;
isOverlayFlagged = false;
isLightFlagged = false;
- isDummy = false;
+ hasNoRecords = false;
}
}