mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
added isSorted method to signalvector
This commit is contained in:
parent
e757a6504b
commit
836f931b23
1 changed files with 12 additions and 0 deletions
|
@ -50,6 +50,8 @@ public:
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual bool isSorted() const = 0;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
std::vector<TVectorItem> vector;
|
std::vector<TVectorItem> vector;
|
||||||
QTimer itemsChangedTimer;
|
QTimer itemsChangedTimer;
|
||||||
|
@ -101,6 +103,11 @@ public:
|
||||||
this->invokeDelayedItemsChanged();
|
this->invokeDelayedItemsChanged();
|
||||||
return index;
|
return index;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual bool isSorted() const override
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
template <typename TVectorItem, typename Compare>
|
template <typename TVectorItem, typename Compare>
|
||||||
|
@ -120,6 +127,11 @@ public:
|
||||||
this->invokeDelayedItemsChanged();
|
this->invokeDelayedItemsChanged();
|
||||||
return index;
|
return index;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual bool isSorted() const override
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace chatterino
|
} // namespace chatterino
|
||||||
|
|
Loading…
Reference in a new issue