diff --git a/src/luaengine/main.cpp b/src/luaengine/main.cpp index bb84d51..fa7207e 100644 --- a/src/luaengine/main.cpp +++ b/src/luaengine/main.cpp @@ -26,6 +26,7 @@ int main(int argc, char *argv[]) { QApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true); + QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps, true); QApplication a(argc, argv); #ifdef Q_OS_WIN diff --git a/src/luaengineapp/main.cpp b/src/luaengineapp/main.cpp index ef699c1..93f6d58 100644 --- a/src/luaengineapp/main.cpp +++ b/src/luaengineapp/main.cpp @@ -30,6 +30,7 @@ int main(int argc, char *argv[]) { QApplication::setAttribute(Qt::AA_EnableHighDpiScaling, true); + QApplication::setAttribute(Qt::AA_UseHighDpiPixmaps, true); QApplication a(argc, argv); #ifdef Q_OS_WIN #if QT_VERSION >= QT_VERSION_CHECK(5, 4, 0) diff --git a/src/luaenginegui/luaengine/LuaEngineGui.cpp b/src/luaenginegui/luaengine/LuaEngineGui.cpp index b07a7af..35e194e 100644 --- a/src/luaenginegui/luaengine/LuaEngineGui.cpp +++ b/src/luaenginegui/luaengine/LuaEngineGui.cpp @@ -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; } }