MCPcopy Create free account
hub / github.com/BatchDrake/SigDigger / getBookmarksInRange

Method getBookmarksInRange

Components/MainSpectrum.cpp:46–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46QList<BookmarkInfo>
47SuscanBookmarkSource::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
66MainSpectrum::MainSpectrum(QWidget *parent) :
67 QWidget(parent),

Callers

nothing calls this directly

Calls 2

getBookmarkFromMethod · 0.80
getLastBookmarkMethod · 0.80

Tested by

no test coverage detected