mirror of
https://gitlab.com/Syping/luaengineapp.git
synced 2024-12-22 11:55:29 +01:00
fix createWidgetStack argument parsing
This commit is contained in:
parent
4c01f31b04
commit
5343818dd4
1 changed files with 2 additions and 2 deletions
|
@ -1188,8 +1188,8 @@ int LuaEngineGui::createToolButton(lua_State *L_p)
|
||||||
|
|
||||||
int LuaEngineGui::createWidgetStack(lua_State *L_p)
|
int LuaEngineGui::createWidgetStack(lua_State *L_p)
|
||||||
{
|
{
|
||||||
if (getArgumentCount(L_p) >= 2) {
|
if (getArgumentCount(L_p) >= 1) {
|
||||||
void *pointer = getPointer(L_p, 2);
|
void *pointer = getPointer(L_p, 1);
|
||||||
if (pointer != NULL && ((QObject*)pointer)->inherits("QStackedWidget")) {
|
if (pointer != NULL && ((QObject*)pointer)->inherits("QStackedWidget")) {
|
||||||
QStackedWidget *stackedWidget = (QStackedWidget*)pointer;
|
QStackedWidget *stackedWidget = (QStackedWidget*)pointer;
|
||||||
QWidget *widgetStack = new QWidget(stackedWidget);
|
QWidget *widgetStack = new QWidget(stackedWidget);
|
||||||
|
|
Loading…
Reference in a new issue