Let's expose this so we can use it in some assertions later.
@@ -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)