LibGUI: Add ModelIndex::model()

Let's expose this so we can use it in some assertions later.
This commit is contained in:
Andreas Kling 2020-08-13 20:27:54 +02:00
parent df62e54d1e
commit 21bb269919

View file

@ -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)