diff --git a/src/plugins/lua/bindings/gui.cpp b/src/plugins/lua/bindings/gui.cpp index bbaaff3b03c..c021c60924b 100644 --- a/src/plugins/lua/bindings/gui.cpp +++ b/src/plugins/lua/bindings/gui.cpp @@ -105,6 +105,7 @@ HAS_MEM_FUNC(setWidgetAttribute, hasSetWidgetAttribute); HAS_MEM_FUNC(setAutoFillBackground, hasSetAutoFillBackground); HAS_MEM_FUNC(setIconPath, hasSetIconPath); HAS_MEM_FUNC(setFlat, hasSetFlat); +HAS_MEM_FUNC(setOpenExternalLinks, hasSetOpenExternalLinks); template void setProperties(std::unique_ptr &item, const sol::table &children, QObject *guard) { @@ -201,6 +202,12 @@ void setProperties(std::unique_ptr &item, const sol::table &children, QObject if (readOnly) item->setReadOnly(*readOnly); } + if constexpr (hasSetOpenExternalLinks::value) { + sol::optional openExternalLinks = children.get>( + "openExternalLinks"); + if (openExternalLinks) + item->setOpenExternalLinks(*openExternalLinks); + } } template