Refactor: UI: Replace uiLayoutColumn with class method uiLayout::column
This converts the public `uiLayoutColumn` function to an object oriented API (`uiLayout::column`), matching the python API. This reduces the difference between the C++ API with the python version, its also helps while converting code from python to C++ code (or vice-versa), making it almost seamless. `uiLayout::column` now returns an `uiLayout` reference instead of a pointer. New calls to this method should use references too. Pull Request: https://projects.blender.org/blender/blender/pulls/138034
This commit is contained in:
committed by
Hans Goudey
parent
5e16193b4c
commit
2d896877d1
@@ -1016,7 +1016,7 @@ static void select_ends_ui(bContext * /*C*/, wmOperator *op)
|
||||
|
||||
uiLayoutSetPropSep(layout, true);
|
||||
|
||||
uiLayout *col = uiLayoutColumn(layout, true);
|
||||
uiLayout *col = &layout->column(true);
|
||||
uiLayoutSetPropDecorate(col, false);
|
||||
uiItemR(col, op->ptr, "amount_start", UI_ITEM_NONE, IFACE_("Amount Start"), ICON_NONE);
|
||||
uiItemR(col, op->ptr, "amount_end", UI_ITEM_NONE, IFACE_("End"), ICON_NONE);
|
||||
|
||||
Reference in New Issue
Block a user