Mercurial > hg > svcore
diff data/model/RegionModel.h @ 1655:0cfb882155a6 single-point
Fixes: completion should default to 100 (it never gets set if we aren't a transform target); events added to time-value model should be denied durations; forward the overspill and matching search functions
author | Chris Cannam |
---|---|
date | Wed, 20 Mar 2019 11:14:36 +0000 |
parents | 7a56bb85030f |
children | e4084bc60fe8 |
line wrap: on
line diff
--- a/data/model/RegionModel.h Wed Mar 20 11:12:54 2019 +0000 +++ b/data/model/RegionModel.h Wed Mar 20 11:14:36 2019 +0000 @@ -53,7 +53,7 @@ notifyOnAdd ? DeferredNotifier::NOTIFY_ALWAYS : DeferredNotifier::NOTIFY_DEFERRED), - m_completion(0) { + m_completion(100) { } RegionModel(sv_samplerate_t sampleRate, int resolution, @@ -70,7 +70,7 @@ notifyOnAdd ? DeferredNotifier::NOTIFY_ALWAYS : DeferredNotifier::NOTIFY_DEFERRED), - m_completion(0) { + m_completion(100) { } virtual ~RegionModel() { @@ -123,7 +123,6 @@ /** * Query methods. */ - int getEventCount() const { return m_events.count(); } @@ -159,7 +158,6 @@ { QMutexLocker locker(&m_mutex); m_events.add(e); -//!!!??? if (point.getLabel() != "") m_hasTextLabels = true; float v = e.getValue(); if (!ISNAN(v) && !ISINF(v)) {