timeline: implemented nudging #1692
This commit is contained in:
@@ -202,6 +202,13 @@ void TimeRangeList::remove(const TimeRange &remove)
|
||||
util_remove(&array_, remove);
|
||||
}
|
||||
|
||||
void TimeRangeList::remove(const TimeRangeList &list)
|
||||
{
|
||||
for (const TimeRange &r : list) {
|
||||
remove(r);
|
||||
}
|
||||
}
|
||||
|
||||
bool TimeRangeList::contains(const TimeRange &range, bool in_inclusive, bool out_inclusive) const
|
||||
{
|
||||
for (int i=0;i<size();i++) {
|
||||
|
||||
@@ -80,6 +80,7 @@ public:
|
||||
void insert(TimeRange range_to_add);
|
||||
|
||||
void remove(const TimeRange& remove);
|
||||
void remove(const TimeRangeList &list);
|
||||
|
||||
template <typename T>
|
||||
static void util_remove(QVector<T> *list, const TimeRange &remove)
|
||||
@@ -148,6 +149,16 @@ public:
|
||||
return array_.constEnd();
|
||||
}
|
||||
|
||||
const_iterator cbegin() const
|
||||
{
|
||||
return begin();
|
||||
}
|
||||
|
||||
const_iterator cend() const
|
||||
{
|
||||
return end();
|
||||
}
|
||||
|
||||
const TimeRange& first() const
|
||||
{
|
||||
return array_.first();
|
||||
|
||||
Reference in New Issue
Block a user