diff --git a/src/common/SignalVector.hpp b/src/common/SignalVector.hpp index f479cd85b..3bbd4fc62 100644 --- a/src/common/SignalVector.hpp +++ b/src/common/SignalVector.hpp @@ -50,6 +50,8 @@ public: } } + virtual bool isSorted() const = 0; + protected: std::vector vector; QTimer itemsChangedTimer; @@ -101,6 +103,11 @@ public: this->invokeDelayedItemsChanged(); return index; } + + virtual bool isSorted() const override + { + return false; + } }; template @@ -120,6 +127,11 @@ public: this->invokeDelayedItemsChanged(); return index; } + + virtual bool isSorted() const override + { + return true; + } }; } // namespace chatterino