1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 19:35:09 +00:00

ProcessManager: Move ProcessTableModel class to its own files.

This commit is contained in:
Andreas Kling 2019-02-28 10:20:04 +01:00
parent a202ed88f6
commit 6e571b66f1
5 changed files with 204 additions and 163 deletions

View file

@ -17,4 +17,9 @@ public:
virtual void set_selected_index(GModelIndex) { }
virtual GModelIndex selected_index() const { return GModelIndex(); }
virtual void update() = 0;
bool is_valid(GModelIndex index) const
{
return index.row() >= 0 && index.row() < row_count() && index.column() >= 0 && index.column() < column_count();
}
};