33 QTableView *view = new QTableView(); |
33 QTableView *view = new QTableView(); |
34 TableModel *model = new TableModel(list, modelinfo); |
34 TableModel *model = new TableModel(list, modelinfo); |
35 view->setModel(model); |
35 view->setModel(model); |
36 |
36 |
37 UiContainer *ct = uic_get_current_container(obj); |
37 UiContainer *ct = uic_get_current_container(obj); |
38 ct->add(view); |
38 ct->add(view, true); |
39 return view; |
39 return view; |
40 } |
40 } |
41 |
41 |
42 UIWIDGET ui_table(UiObject *obj, UiList *list, UiModelInfo *modelinfo) { |
42 UIWIDGET ui_table(UiObject *obj, UiList *list, UiModelInfo *modelinfo) { |
43 UiListPtr *listptr = (UiListPtr*)ucx_mempool_malloc(obj->ctx->mempool, sizeof(UiListPtr)); |
43 UiListPtr *listptr = (UiListPtr*)ucx_mempool_malloc(obj->ctx->mempool, sizeof(UiListPtr)); |