From 21bb26991913ff9d2e4aa8c497398166b6477239 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Thu, 13 Aug 2020 20:27:54 +0200 Subject: [PATCH] LibGUI: Add ModelIndex::model() Let's expose this so we can use it in some assertions later. --- Libraries/LibGUI/ModelIndex.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Libraries/LibGUI/ModelIndex.h b/Libraries/LibGUI/ModelIndex.h index c1c94d081e..7bdb647ec4 100644 --- a/Libraries/LibGUI/ModelIndex.h +++ b/Libraries/LibGUI/ModelIndex.h @@ -55,6 +55,8 @@ public: return !(*this == other); } + const Model* model() const { return m_model; } + private: ModelIndex(const Model& model, int row, int column, void* internal_data) : m_model(&model)