Changed default memory management model
commitdb6e889711bc9e48d6d1ffb312f135f5b070be1e
authorMichall Kottman <michal.kottman@gmail.com>
Thu, 8 Dec 2011 22:24:07 +0000 (8 23:24 +0100)
committerMichall Kottman <michal.kottman@gmail.com>
Thu, 8 Dec 2011 22:24:07 +0000 (8 23:24 +0100)
treedef8a172c5705cbc11be08e840645a205e79c168
parent3f951b3734af4fdc1ecf68f886e76b6c59ed9bd3
Changed default memory management model

From now, when you call the class, you are creating a Lua-managed
object, the same as calling new_local() previously. You can still
use new() to create unmanaged objects, suitable for parent/child
mechanism of Qt. This makes it behave more like C++ - you can use
QObject() to create a temporary object and QObject.new() to create
an unmanaged object, which you can free using delete().

The new_local() function is removed, which may break some scripts.
13 files changed:
common/lqt_common.cpp
doc/USAGE.md
test/file_test.lua
test/mm.lua
test/sql_test.lua
test/t1.lua
test/t2.lua
test/t3.lua
test/t4.lua
test/t5.lua
test/t6.lua
test/t7.lua
test/webview.lua