From c682585574d0d0568c7cd3dd139c1ce1786aaa3d Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (h)" <j.wuttke@fz-juelich.de> Date: Thu, 29 Feb 2024 10:37:52 +0100 Subject: [PATCH] + pure virtual SetBase::model() --- GUI/Model/Type/SetWithModel.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/GUI/Model/Type/SetWithModel.h b/GUI/Model/Type/SetWithModel.h index 356cc2707f4..daa25f836ca 100644 --- a/GUI/Model/Type/SetWithModel.h +++ b/GUI/Model/Type/SetWithModel.h @@ -32,6 +32,9 @@ class SetBase : public QObject { public: explicit SetBase(QObject* parent = nullptr); virtual ~SetBase(); + + virtual QAbstractListModel* model() = 0; + signals: void setChanged() const; void currentModified() const; @@ -122,7 +125,7 @@ public: Iterator begin() { return m_vec.begin(); } Iterator end() { return m_vec.end(); } - QAbstractListModel* model() { return m_qmodel.get(); } + QAbstractListModel* model() override { return m_qmodel.get(); } private: void update_current() -- GitLab