Lines Matching refs:model

85 	peers->setModel(&model);  in Peers()
181 ctx_item = model.itemFromIndex(idx); in context_menu()
427 if (model.rowCount() > 0) { in add_station()
428 QModelIndexList lst = model.match(model.index(0, 0), in add_station()
433 item = model.itemFromIndex(lst[i]); in add_station()
438 model.removeRow(lst[i].row()); in add_station()
449 model.appendRow(item); in add_station()
556 model.appendRow(item); in add_p2p_group_client()
563 if (model.rowCount() == 0) in remove_bss()
566 QModelIndexList lst = model.match(model.index(0, 0), peer_role_bss_id, in remove_bss()
570 model.removeRow(lst[0].row()); in remove_bss()
644 model.appendRow(item); in add_bss()
711 model.appendRow(item); in add_persistent()
767 model.clear(); in update_peers()
783 if (model.rowCount() == 0) in find_addr()
786 QModelIndexList lst = model.match(model.index(0, 0), peer_role_address, in find_addr()
790 return model.itemFromIndex(lst[0]); in find_addr()
796 if (model.rowCount() == 0) in find_addr_type()
799 QModelIndexList lst = model.match(model.index(0, 0), peer_role_address, in find_addr_type()
802 QStandardItem *item = model.itemFromIndex(lst[i]); in find_addr_type()
812 if (model.rowCount() == 0) in find_uuid()
815 QModelIndexList lst = model.match(model.index(0, 0), peer_role_uuid, in find_uuid()
819 return model.itemFromIndex(lst[0]); in find_uuid()
861 model.appendRow(item); in event_notify()
882 if (model.rowCount() == 0) in event_notify()
885 QModelIndexList lst = model.match(model.index(0, 0), in event_notify()
888 QStandardItem *item = model.itemFromIndex(lst[i]); in event_notify()
891 model.removeRow(lst[i].row()); in event_notify()
941 model.appendRow(item); in event_notify()
987 model.appendRow(item); in event_notify()
997 if (model.rowCount() == 0) in event_notify()
1000 QModelIndexList lst = model.match(model.index(0, 0), in event_notify()
1003 model.removeRow(lst[i].row()); in event_notify()
1082 model.removeRow(item->row()); in event_notify()
1092 model.appendRow(item); in event_notify()
1142 model.appendRow(item); in event_notify()
1153 if (model.rowCount() == 0) in event_notify()
1156 QModelIndexList lst = model.match(model.index(0, 0), in event_notify()
1159 QStandardItem *item = model.itemFromIndex(lst[i]); in event_notify()
1165 model.removeRow(lst[i].row()); in event_notify()
1227 model.appendRow(item); in event_notify()
1309 model.appendRow(item); in event_notify()
1571 if (model.rowCount() == 0) in remove_enrollee_uuid()
1574 QModelIndexList lst = model.match(model.index(0, 0), in remove_enrollee_uuid()
1577 QStandardItem *item = model.itemFromIndex(lst[i]); in remove_enrollee_uuid()
1583 model.removeRow(lst[i].row()); in remove_enrollee_uuid()
1771 if (model.rowCount() == 0) in ctx_hide_ap()
1776 lst = model.match(model.index(0, 0), in ctx_hide_ap()
1779 lst = model.match(model.index(0, 0), in ctx_hide_ap()
1785 model.removeRow(lst[0].row()); in ctx_hide_ap()
1837 model.removeRow(ctx_item->row()); in ctx_p2p_start_persistent()
1867 model.removeRow(ctx_item->row()); in ctx_p2p_delete()
1873 if (model.rowCount() == 0) in enable_persistent()
1876 QModelIndexList lst = model.match(model.index(0, 0), in enable_persistent()
1879 QStandardItem *item = model.itemFromIndex(lst[i]); in enable_persistent()