From 836f931b234fb201e628d0d21cd2f458a87514cc Mon Sep 17 00:00:00 2001 From: fourtf Date: Tue, 3 Jul 2018 15:06:23 +0200 Subject: [PATCH] added isSorted method to signalvector --- src/common/SignalVector.hpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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