return;
QModelIndex const idxToAdd = selIdx.first();
- QModelIndex const idx = selectedLV->currentIndex();
int const srows = selectedModel->rowCount();
QMap<int, QVariant> qm = availableModel->itemData(idxToAdd);
insertRowToSelected(srows, qm);
selectionChanged(); //signal
-
+
+ QModelIndex const idx = selectedLV->currentIndex();
if (idx.isValid())
selectedLV->setCurrentIndex(idx);
selectedModel->removeRow(pos);
insertRowToSelected(pos - 1, qms);
- selectionChanged(); //signal
-
+ idx = selIdx.first();
selectedLV->setCurrentIndex(idx.sibling(idx.row() - 1, idx.column()));
selectedHasFocus_ = true;
updateHook();
selectedModel->removeRow(pos);
insertRowToSelected(pos + 1, qms);
- selectionChanged(); //signal
-
+ idx = selIdx.first();
selectedLV->setCurrentIndex(idx.sibling(idx.row() + 1, idx.column()));
selectedHasFocus_ = true;
updateHook();