diff options
| author | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-09-28 22:55:55 +0200 |
|---|---|---|
| committer | Mikaël Capelle <capelle.mikael@gmail.com> | 2020-09-28 22:55:55 +0200 |
| commit | eb72caa7c14f3de512afa0e7fc5d05787f232cca (patch) | |
| tree | 111d8bb75fe9bd832528c35a0f6041678b273e77 /src/settingsdialogplugins.h | |
| parent | 154d83e479baecf8c0c670c6b8d5d72e3c2299d1 (diff) | |
Use localizedName() instead of name() for the list of plugins in the UI.
Diffstat (limited to 'src/settingsdialogplugins.h')
| -rw-r--r-- | src/settingsdialogplugins.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/settingsdialogplugins.h b/src/settingsdialogplugins.h index 8e2dae2a..b793e5fd 100644 --- a/src/settingsdialogplugins.h +++ b/src/settingsdialogplugins.h @@ -16,6 +16,16 @@ private: void on_pluginsList_currentItemChanged(QListWidgetItem *current, QListWidgetItem *previous); void deleteBlacklistItem(); void storeSettings(QListWidgetItem *pluginItem); + + /** + * @brief Retrieve the plugin associated to the given item in the list. + * + */ + MOBase::IPlugin* plugin(QListWidgetItem *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; }; #endif // SETTINGSDIALOGPLUGINS_H |
