require qtcore module in the tests
[lqt.git] / test / slot_test.lua
blobe281d18702593c202133ec0b854d9ebca92935a2
1 #!/usr/bin/lua
3 require'qtcore'
5 slot = newslot()
7 slot.slot = function() print'called slot' end
9 for i = 1, 1e4 do
10 local qo = QObject.new()
11 qo:connect("2destroyed()", slot, "1slot()")
12 qo:delete()
13 end
15 slot["slot()"] = function() print'called slot()' end
17 for i = 1, 1e4 do
18 local qo = QObject.new()
19 qo:connect("2destroyed()", slot, "1slot()")
20 qo:delete()
21 end