MCPcopy Create free account
hub / github.com/QNapi/qnapi / pbMoveDownClicked

Method pbMoveDownClicked

gui/src/forms/frmoptions.cpp:202–214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

200}
201
202void frmOptions::pbMoveDownClicked() {
203 int currentRow = ui.twEngines->row(ui.twEngines->selectedItems().at(0));
204
205 QTableWidgetItem *current, *below;
206 current = ui.twEngines->item(currentRow, 0);
207 below = ui.twEngines->item(currentRow + 1, 0);
208
209 QTableWidgetItem tmp = *current;
210 *current = *below;
211 *below = tmp;
212
213 ui.twEngines->selectRow(currentRow + 1);
214}
215
216void frmOptions::pbEngineConfClicked() {
217 QString engineName = ui.twEngines->selectedItems().at(0)->text();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected