forked from qt-creator/qt-creator
On macOS, files in Contents/PlugIns/ need to be codesigned individually. Since Lua plugins are not really binaries, per Apple's documentation that is to be avoided (and we currently only sign executables there). Just move Lua plugins generally to the resources directory, like we do for other scripts like the debugger Python scripts, and load them from there. Change-Id: Idabd6b7c0c7c6e842b1752488cb7073f00e7be49 Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
24 lines
501 B
Lua
24 lines
501 B
Lua
-- Copyright (C) 2024 The Qt Company Ltd.
|
|
-- SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only WITH Qt-GPL-exception-1.0
|
|
|
|
local Utils = require("Utils")
|
|
local Gui = require("Gui")
|
|
|
|
local function using(tbl)
|
|
local result = _G
|
|
for k, v in pairs(tbl) do result[k] = v end
|
|
return result
|
|
end
|
|
|
|
local function show()
|
|
--- "using namespace Gui"
|
|
local _ENV = using(Gui)
|
|
|
|
Widget {
|
|
size = { 400, 300 },
|
|
Row { "Hello World!" },
|
|
}:show()
|
|
end
|
|
|
|
return show
|