Update BUILD
[lqt/mk.git] / test / virt_test.lua
blobd1b1be1fcab25a4b3a9b6ea530ed220c20538788
1 #!/usr/bin/lua
3 require'qtcore'
5 qa = QCoreApplication.new(1, {'virt_test'})
7 qo = QObject.new()
8 qo.event = function(o, e)
9 print('event overload called', e:type())
10 return false
11 end
12 qo.childEvent = function(o, e)
13 print('child event overload called', e:type())
14 return false
15 end
17 ql = {}
19 for i = 1, 5 do
20 table.insert(ql, qo:new())
21 end
23 qo.event = nil
25 for i, o in ipairs(ql) do
26 o:delete()
27 end