1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 10:18:11 +00:00

LibGUI: Add a mode where GTableModel automatically activates on selection.

This commit is contained in:
Andreas Kling 2019-03-15 16:25:30 +01:00
parent 84f5312dc2
commit c1f2f5a153
4 changed files with 20 additions and 1 deletions

View file

@ -13,6 +13,8 @@ public:
int row() const { return m_row; }
int column() const { return m_column; }
bool operator==(const GModelIndex& other) const { return m_row == other.m_row && m_column == other.m_column; }
private:
int m_row { -1 };
int m_column { -1 };