mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +00:00
LibGUI: Start working on GTableView inline editing.
This is pretty shaky still, but the basic idea is that you subclass GModel and return true for editable indices. The table view also needs to have its editable flag set.
This commit is contained in:
parent
9ef06e2117
commit
0e6b273620
9 changed files with 95 additions and 6 deletions
|
@ -57,6 +57,8 @@ public:
|
|||
virtual GModelIndex index(int row, int column = 0, const GModelIndex& = GModelIndex()) const { return create_index(row, column); }
|
||||
virtual void activate(const GModelIndex&) { }
|
||||
virtual GModelIndex sibling(int row, int column, const GModelIndex& parent) const;
|
||||
virtual bool is_editable(const GModelIndex&) const { return false; }
|
||||
virtual void set_data(const GModelIndex&, const GVariant&) { }
|
||||
|
||||
bool is_valid(const GModelIndex& index) const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue