From eb72caa7c14f3de512afa0e7fc5d05787f232cca Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Mon, 28 Sep 2020 22:55:55 +0200 Subject: Use localizedName() instead of name() for the list of plugins in the UI. --- src/settingsdialogplugins.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/settingsdialogplugins.h') 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 -- cgit v1.3.1