def METHOD_NAME(self):
    index = self.scheme.currentIndex()
    name = self.scheme.itemText(index)
    scheme = self.scheme.itemData(index)
    newName, ok = QInputDialog.getText(self, _("Rename"), _("New name:"), text=name)
    if ok:
        self.scheme.blockSignals(True)
        self.scheme.removeItem(index)
        self.insertSchemeItem(newName, scheme)
        self.scheme.setCurrentIndex(self.scheme.findData(scheme))
        self.scheme.blockSignals(False)
        self.changed.emit()