From 8af2f68493e569c51c972654d8314f5fd32f29a0 Mon Sep 17 00:00:00 2001 From: hjk Date: Fri, 26 Jul 2024 11:53:04 +0200 Subject: [PATCH] Core: Allow plain widgets in IOptionPage::setWidgetCreator() They were internally stored as QWidget anyway and only used as IOptionsPageWidget after qobject_cast, with a sane default implementation if they are not. Change-Id: I98c73fb1221ba6f05e52d9f79ccd0f4c2fc7fa69 Reviewed-by: Eike Ziller --- src/plugins/coreplugin/dialogs/ioptionspage.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/coreplugin/dialogs/ioptionspage.h b/src/plugins/coreplugin/dialogs/ioptionspage.h index 618cbc80322..08b533c28e7 100644 --- a/src/plugins/coreplugin/dialogs/ioptionspage.h +++ b/src/plugins/coreplugin/dialogs/ioptionspage.h @@ -56,7 +56,7 @@ public: QString displayCategory() const; Utils::FilePath categoryIconPath() const; - using WidgetCreator = std::function; + using WidgetCreator = std::function; void setWidgetCreator(const WidgetCreator &widgetCreator); virtual QWidget *widget();