Issue #77 Move GlobalIndex enum from CPropertyIndex to CPropertyIndexRef

This commit is contained in:
Mat Sutcliffe
2020-11-01 20:12:55 +00:00
parent 0971c8ce68
commit 363758e8ea
92 changed files with 210 additions and 211 deletions

View File

@@ -242,9 +242,9 @@ namespace BlackMisc
if (indexes.isEmpty() || this->isEmpty()) { return {}; }
QString html;
int line = 1;
const bool withLineNumbers = indexes.contains(CPropertyIndex::GlobalIndexLineNumber);
const bool withLineNumbers = indexes.contains(CPropertyIndexRef::GlobalIndexLineNumber);
CPropertyIndexList usedIndexes(indexes);
if (withLineNumbers) { usedIndexes.remove(CPropertyIndex::GlobalIndexLineNumber); }
if (withLineNumbers) { usedIndexes.remove(CPropertyIndexRef::GlobalIndexLineNumber); }
for (const CStatusMessage &statusMessage : *this)
{
QString rowHtml;
@@ -268,7 +268,7 @@ namespace BlackMisc
const CPropertyIndexList &CStatusMessageList::simpleHtmlOutput()
{
static const CPropertyIndexList properties({ CPropertyIndex::GlobalIndexLineNumber, CStatusMessage::IndexMessage });
static const CPropertyIndexList properties({ CPropertyIndexRef::GlobalIndexLineNumber, CStatusMessage::IndexMessage });
return properties;
}