Verified Commit 25e87fe4 authored by Fushan Wen's avatar Fushan Wen 💬
Browse files

calendar: move m_roles to initializer list

parent 6c754e7a
......@@ -43,8 +43,8 @@ class EventPluginsModel : public QAbstractListModel
public:
EventPluginsModel(EventPluginsManagerPrivate *d)
: d(d)
, m_roles(QAbstractListModel::roleNames())
{
m_roles = QAbstractListModel::roleNames();
m_roles.insert(Qt::EditRole, QByteArrayLiteral("checked"));
m_roles.insert(Qt::UserRole, QByteArrayLiteral("configUi"));
m_roles.insert(Qt::UserRole + 1, QByteArrayLiteral("pluginPath"));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment