Remove workarounds for fixed bugs

This commit is contained in:
Mat Sutcliffe
2021-04-16 22:32:01 +01:00
parent 093138972a
commit 7955d0a06e
15 changed files with 16 additions and 110 deletions

View File

@@ -30,10 +30,6 @@ namespace BlackGui
{
namespace Models
{
CDefaultFormatter::CDefaultFormatter(int alignment, bool i18n, const QList<int> &supportedRoles) :
m_supportedRoles(supportedRoles), m_alignment(alignment), m_useI18n(i18n)
{}
Qt::ItemFlags CDefaultFormatter::flags(Qt::ItemFlags flags, bool editable) const
{
return editable ? (flags | Qt::ItemIsEditable) : (flags & ~Qt::ItemIsEditable);

View File

@@ -38,8 +38,9 @@ namespace BlackGui
{
public:
//! Constructor
//! \fixme Defining this inline causes ICE in Clang on Windows
CDefaultFormatter(int alignment = alignDefault(), bool i18n = true, const QList<int> &supportedRoles = { Qt::DisplayRole });
CDefaultFormatter(int alignment = alignDefault(), bool i18n = true, const QList<int> &supportedRoles = { Qt::DisplayRole }) :
m_supportedRoles(supportedRoles), m_alignment(alignment), m_useI18n(i18n)
{}
//! Virtual destructor
virtual ~CDefaultFormatter() {}