diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-22 21:19:35 +0100 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2021-01-22 21:19:35 +0100 |
| commit | 54744c04b25454440c6d9a590a9ae2f36226bc03 (patch) | |
| tree | e23cd633a6e36e10a3c2a7d279bcc3734c62128e /src/settingsdialogplugins.h | |
| parent | 7864fc0950729621c0297389f5b47d27e4d41d8f (diff) | |
Use proper naming convention for constants.
Diffstat (limited to 'src/settingsdialogplugins.h')
| -rw-r--r-- | src/settingsdialogplugins.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/settingsdialogplugins.h b/src/settingsdialogplugins.h index 3de0d7dc..c784b83e 100644 --- a/src/settingsdialogplugins.h +++ b/src/settingsdialogplugins.h @@ -39,9 +39,11 @@ private slots: */ MOBase::IPlugin* plugin(QTreeWidgetItem *pluginItem) const; - constexpr static int ROLE_PLUGIN = Qt::UserRole; - constexpr static int ROLE_SETTINGS = Qt::UserRole + 1; - constexpr static int ROLE_DESCRIPTIONS = Qt::UserRole + 2; + enum { + PluginRole = Qt::UserRole, + SettingsRole = Qt::UserRole + 1, + DescriptionsRole = Qt::UserRole + 2 + }; private: |
