| 44 | } |
| 45 | |
| 46 | QList<BookmarkInfo> |
| 47 | SuscanBookmarkSource::getBookmarksInRange(qint64 start, qint64 end) |
| 48 | { |
| 49 | QList<BookmarkInfo> list; |
| 50 | |
| 51 | auto p = Suscan::Singleton::get_instance()->getBookmarkFrom(start); |
| 52 | |
| 53 | while (p != Suscan::Singleton::get_instance()->getLastBookmark()) { |
| 54 | try { |
| 55 | if (p->info.frequency <= end) { |
| 56 | list.push_back(p->info); |
| 57 | } |
| 58 | |
| 59 | } catch (Suscan::Exception const &) { } |
| 60 | ++p; |
| 61 | } |
| 62 | |
| 63 | return list; |
| 64 | } |
| 65 | |
| 66 | MainSpectrum::MainSpectrum(QWidget *parent) : |
| 67 | QWidget(parent), |
nothing calls this directly
no test coverage detected