TODO: new action's widget get
| 2155 | itemSelection.select(index, index); |
| 2156 | } |
| 2157 | } |
| 2158 | } |
| 2159 | selectionModel->select(itemSelection, QItemSelectionModel::Select); |
| 2160 | } |
| 2161 | void EditUi::ItemSelectSimilar() |
| 2162 | { |
| 2163 | if (tableCurrent.size() != 1) return; |
| 2164 | const Action& current = actions->at(tableCurrent.front()); |
| 2165 | QiVector<int> index; |
| 2166 | for (size_t i = 0; i < actions->size(); i++) if (actions->at(i).type() == current.type()) index.append(i); |
| 2167 | ItemSelect(index); |