ui/qt/tree.cpp

changeset 66
8d490d97aab8
parent 58
2b124f8ebd95
child 69
419c8c3209e8
equal deleted inserted replaced
65:4697592e24ba 66:8d490d97aab8
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));

mercurial