| 121 | } |
| 122 | |
| 123 | ChangeOptionalDataFormatCommand::ChangeOptionalDataFormatCommand(BootEntryListModel &model_, const QModelIndex &index_, const BootEntry::OptionalDataFormat &value_, QUndoCommand *parent) |
| 124 | : QUndoCommand{"", parent} |
| 125 | , model{model_} |
| 126 | , title{model_.entries.at(index_.row()).getTitle()} |
| 127 | , index{index_} |
| 128 | , value{value_} |
| 129 | { |
| 130 | updateTitle(value); |
| 131 | } |
| 132 | |
| 133 | int ChangeOptionalDataFormatCommand::id() const |
| 134 | { |