Ref T478, removed the critical functions + adjustments

The code was never used as we decided not to translate swift, but do it all in English. So that code branch was never executed and I have removed the above 4 function + required adjustments.

* getTranslationContextChar
* getColumnNameChar
* getColumnToolTipChar
* getTranslationContextChar
This commit is contained in:
Klaus Basan
2018-12-21 10:18:04 +01:00
committed by Mat Sutcliffe
parent da0e021332
commit 4aec50ccfc
5 changed files with 11 additions and 64 deletions

View File

@@ -52,13 +52,11 @@ namespace BlackGui
if (role == Qt::DisplayRole)
{
const QString header = m_columns.at(section).getColumnName(false);
return QVariant(header);
return QVariant(m_columns.at(section).getColumnName());
}
if (role == Qt::ToolTipRole)
{
const QString header = m_columns.at(section).getColumnToolTip(false);
return header.isEmpty() ? QVariant() : QVariant(header);
return QVariant(m_columns.at(section).getColumnToolTip());
}
return QVariant();
}
@@ -135,11 +133,6 @@ namespace BlackGui
return f;
}
const QString &CListModelBaseNonTemplate::getTranslationContext() const
{
return m_columns.getTranslationContext();
}
Qt::DropActions CListModelBaseNonTemplate::supportedDragActions() const
{
return isOrderable() ? Qt::CopyAction | Qt::MoveAction : Qt::CopyAction;