cache: fixed on-demand cache

This commit is contained in:
itsmattkc
2021-10-09 19:13:11 -07:00
parent eba2ca55d4
commit 4125f41d1f
5 changed files with 29 additions and 14 deletions
+2 -1
View File
@@ -296,7 +296,8 @@ TimeRangeListFrameIterator::TimeRangeListFrameIterator(const TimeRangeList &list
list_(list),
timebase_(timebase),
index_(-1),
size_(-1)
size_(-1),
custom_range_(false)
{
if (!list_.isEmpty() && timebase_.isNull()) {
qCritical() << "TimeRangeListFrameIterator created with null timebase but non-empty list, this will likely lead to infinite loops";
+12
View File
@@ -228,6 +228,16 @@ public:
list_.insert(list);
}
bool IsCustomRange() const
{
return custom_range_;
}
void SetCustomRange(bool e)
{
custom_range_ = e;
}
private:
void UpdateIndexIfNecessary();
@@ -241,6 +251,8 @@ private:
int size_;
bool custom_range_;
};
uint qHash(const TimeRange& r, uint seed = 0);