-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathLoginWindow.lua
50 lines (40 loc) · 915 Bytes
/
LoginWindow.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
require 'QtWidgets'
require 'luaqtml'
local ui_LoginWindow = requireUI("./loginwindow.ui")
-- @luaqt
-- @class LoginWindow
-- @ extends QWidget
local LoginWindow = {}
-- @constructor __init__
-- @ argument QWidget*
-- @end constructor
function LoginWindow:__init__(parent)
self = super(parent)
self.ui = ui_LoginWindow.setupUi(self)
self:connect(self.ui.btn_Login, "2clicked(bool)", "1doLogin(bool)")
self:connect(self.ui.edit_ID, "2cursorPositionChanged(int, int)", "1testPosition(int, int)")
end
-- @signal logined
-- @ return void
-- @end signal
function LoginWindow:logined()
end
-- @slot doLogin
-- @ argument bool
-- @ return void
-- @end slot
function LoginWindow:doLogin(arg)
self:logined()
end
-- @slot testPosition
-- @ argument int
-- @ argument int
-- @ return void
-- @end slot
function LoginWindow:testPosition(f, t)
print(f, t)
end
-- @end class
return {
LoginWindow = LoginWindow
}