mirror of
https://github.com/KLayout/klayout.git
synced 2026-08-29 01:14:35 +02:00
Provide more lifetime management in Qt bindings also for Qt4
This commit is contained in:
@@ -635,11 +635,26 @@ drop_method "Qimage", /Qimage::text\(const\s+QString/ # clashes with const char
|
||||
rename "QDialogButtonBox", /QDialogButtonBox::QDialogButtonBox\(QFlags/, "new_buttons"
|
||||
rename "QIcon", /QIcon::pixmap\(int\s+extent/, "pixmap_ext"
|
||||
rename "QKeySequence", /QKeySequence::QKeySequence\(QKeySequence::StandardKey/, "new_std"
|
||||
|
||||
# TODO: basically, the layout object only takes ownership over the objects when
|
||||
# it has a QWidget parent itself. This is not reflected in the following simple scheme
|
||||
keep_arg "QBoxLayout", /::addLayout/, 0 # will take ownership of layout
|
||||
keep_arg "QBoxLayout", /::addSpacerItem/, 0 # will take ownership of item
|
||||
keep_arg "QBoxLayout", /::addWidget/, 0 # will take ownership of item
|
||||
keep_arg "QBoxLayout", /::insertItem/, 1 # will take ownership of item
|
||||
keep_arg "QBoxLayout", /::insertLayout/, 1 # will take ownership of item
|
||||
keep_arg "QBoxLayout", /::insertSpacerItem/, 1 # will take ownership of item
|
||||
keep_arg "QBoxLayout", /::insertWidget/, 1 # will take ownership of item
|
||||
keep_arg "QGridLayout", /::addLayout/, 0 # will take ownership of layout
|
||||
keep_arg "QWidget", /::setLayout\s*\(/, 0 # will take ownership of layout
|
||||
keep_arg "QGridLayout", /::addItem/, 0 # will take ownership of layout
|
||||
keep_arg "QGridLayout", /::addWidget/, 0 # will take ownership of layout
|
||||
keep_arg "QLayout", /::addChildLayout/, 0 # will take ownership of layout
|
||||
keep_arg "QLayout", /::addItem/, 0 # will take ownership of item
|
||||
keep_arg "QLayout", /::addWidget/, 0 # will take ownership of item
|
||||
keep_arg "QStackedLayout", /::addWidget/, 0 # will take ownership of item
|
||||
keep_arg "QStackedLayout", /::insertWidget/, 1 # will take ownership of item
|
||||
|
||||
keep_arg "QWidget", /::setLayout\s*\(/, 0 # will take ownership of layout
|
||||
keep_arg "QTreeWidgetItem", /::addChild\(/, 0 # will take ownership of the child
|
||||
keep_arg "QTreeWidgetItem", /::addChildren\(/, 0 # will take ownership of the children
|
||||
keep_arg "QTreeWidgetItem", /::insertChild\(/, 1 # will take ownership of the child
|
||||
|
||||
Reference in New Issue
Block a user