mirror of
https://gitlab.com/Syping/luaengineapp.git
synced 2026-04-01 20:50:41 +02:00
improve 4K images
This commit is contained in:
parent
01d43e6e20
commit
5ea18c9b4b
3 changed files with 5 additions and 0 deletions
|
|
@ -641,6 +641,9 @@ int LuaEngineGui::setWidgetImageSize(lua_State *L_p)
|
|||
if (((QObject*)pointer)->inherits("QPushButton")) {
|
||||
((QPushButton*)pointer)->setIconSize(QSize(getVariant(L_p, 2).toInt(), getVariant(L_p, 3).toInt()));
|
||||
}
|
||||
else if (((QObject*)pointer)->inherits("QToolBar")) {
|
||||
((QToolBar*)pointer)->setIconSize(QSize(getVariant(L_p, 2).toInt(), getVariant(L_p, 3).toInt()));
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue