summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Libraries/LibGUI/ModelIndex.h2
1 files changed, 2 insertions, 0 deletions
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)