| 636 | } |
| 637 | |
| 638 | void InputEditorView::renameLabel() |
| 639 | { |
| 640 | if (contextSection < InputEditorModel::COLUMN_SPECIAL_SIZE) |
| 641 | return; |
| 642 | if (contextSection == inputEditorModel->columnCount() - 1) |
| 643 | return; |
| 644 | QString text = QString("New label for input %1 is: ").arg(inputEditorModel->inputDescription(contextSection).c_str()); |
| 645 | QString newLabel = QInputDialog::getText(this, tr("Rename label"), text, QLineEdit::Normal, QString(inputEditorModel->inputLabel(contextSection).c_str())); |
| 646 | |
| 647 | if (!newLabel.isEmpty()) { |
| 648 | inputEditorModel->renameLabel(contextSection, newLabel.toStdString()); |
| 649 | } |
| 650 | } |
| 651 | |
| 652 | void InputEditorView::addInputColumn() |
| 653 | { |
nothing calls this directly
no test coverage detected