From cbe84327c685626cf816f956b5857557a5f3090e Mon Sep 17 00:00:00 2001 From: Tannin Date: Wed, 25 Feb 2015 17:57:38 +0100 Subject: - added content icon for BSAs - improved display of content icons (better scaling and some borders) - bugfix: contains changes missing from changeset bc6b6430017b --- src/modlist.cpp | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) (limited to 'src/modlist.cpp') diff --git a/src/modlist.cpp b/src/modlist.cpp index 23b74300..06123359 100644 --- a/src/modlist.cpp +++ b/src/modlist.cpp @@ -164,12 +164,14 @@ QVariantList ModList::contentsToIcons(const std::vector &cont QString ModList::contentsToToolTip(const std::vector &contents) const { - QString result(""); + QString result("
"); std::set contentsSet(contents.begin(), contents.end()); for (auto iter = m_ContentIcons.begin(); iter != m_ContentIcons.end(); ++iter) { if (contentsSet.find(iter->first) != contentsSet.end()) { - result.append(QString("").arg(std::get<1>(iter->second)).arg(std::get<2>(iter->second))); + result.append(QString("" + "") + .arg(std::get<0>(iter->second)).arg(std::get<1>(iter->second))); } } result.append("
%2
%2
"); @@ -968,17 +970,18 @@ QString ModList::getColumnToolTip(int column) case COL_MODID: return tr("Id of the mod as used on Nexus."); case COL_FLAGS: return tr("Emblemes to highlight things that might require attention."); case COL_CONTENT: return tr("Depicts the content of the mod:
" - "Game plugins (esp/esm)
" - "interface
" - "Meshes
" - "Textures
" - "Sounds
" - "Music
" - "Strings
" - "Scripts (Papyrus)
" - "Script Extender plugins
" - "SkyProc Patcher
" - ); + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "" + "
Game plugins (esp/esm)
Interface
Meshes
Textures
Sounds
Music
Strings
Scripts (Papyrus)
Script Extender plugins
SkyProc Patcher
"); case COL_INSTALLTIME: return tr("Time this mod was installed"); default: return tr("unknown"); } -- cgit v1.3.1