mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 19:25:49 +08:00
Remove workarounds for fixed bugs
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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() {}
|
||||
|
||||
Reference in New Issue
Block a user