| 132 | } |
| 133 | |
| 134 | void |
| 135 | BookmarkManagerDialog::onEditAccepted(void) |
| 136 | { |
| 137 | BookmarkInfo newInfo; |
| 138 | newInfo.frequency = this->editDialog->frequency(); |
| 139 | newInfo.name = this->editDialog->name(); |
| 140 | newInfo.color = this->editDialog->color(); |
| 141 | newInfo.lowFreqCut = -this->editDialog->bandwidth() / 2; |
| 142 | newInfo.highFreqCut = this->editDialog->bandwidth() / 2; |
| 143 | newInfo.modulation = editDialog->modulation(); |
| 144 | |
| 145 | if (this->editingFrequency == newInfo.frequency) { |
| 146 | Suscan::Singleton::get_instance()->replaceBookmark(newInfo); |
| 147 | |
| 148 | } else { |
| 149 | Suscan::Singleton::get_instance()->removeBookmark(this->editingFrequency); |
| 150 | Suscan::Singleton::get_instance()->registerBookmark(newInfo); |
| 151 | } |
| 152 | |
| 153 | this->notifyChanged(); |
| 154 | } |
| 155 | |
| 156 | void |
| 157 | BookmarkManagerDialog::onEditBookmark(QModelIndex index) |
nothing calls this directly
no test coverage detected