MCPcopy Create free account
hub / github.com/clementgallet/libTAS / renameLabel

Method renameLabel

src/program/ui/InputEditorView.cpp:638–650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

636}
637
638void 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
652void InputEditorView::addInputColumn()
653{

Callers

nothing calls this directly

Calls 5

inputDescriptionMethod · 0.80
inputLabelMethod · 0.80
columnCountMethod · 0.45
c_strMethod · 0.45
isEmptyMethod · 0.45

Tested by

no test coverage detected