forked from qt-creator/qt-creator
Lua: Make Layout-derived classes directly show-able
Change-Id: I2bea8187626c239b5b2e9ddb32d291db97ddc9ac Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
This commit is contained in:
@@ -231,6 +231,15 @@ void addLayoutModule()
|
||||
"Stretch", sol::call_constructor, sol::constructors<Stretch(int)>());
|
||||
|
||||
// Layouts
|
||||
layout.new_usertype<Layout>(
|
||||
"Layout",
|
||||
sol::call_constructor,
|
||||
sol::factories(&construct<Layout>),
|
||||
"show",
|
||||
&Layout::show,
|
||||
sol::base_classes,
|
||||
sol::bases<Object, Thing>());
|
||||
|
||||
layout.new_usertype<Form>(
|
||||
"Form",
|
||||
sol::call_constructor,
|
||||
|
||||
Reference in New Issue
Block a user