mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:08:10 +00:00
LibGUI: Implement a basic "any key pressed" edit trigger for TableView
This trigger allows you to initiate cell editing by simply starting to type something into the cell. :^)
This commit is contained in:
parent
f3e4b62be9
commit
5daa19fdab
2 changed files with 13 additions and 2 deletions
|
@ -144,6 +144,7 @@ protected:
|
|||
ModelIndex m_edit_index;
|
||||
RefPtr<Widget> m_edit_widget;
|
||||
Gfx::IntRect m_edit_widget_content_rect;
|
||||
OwnPtr<ModelEditingDelegate> m_editing_delegate;
|
||||
|
||||
Gfx::IntPoint m_left_mousedown_position;
|
||||
bool m_might_drag { false };
|
||||
|
@ -156,7 +157,6 @@ protected:
|
|||
|
||||
private:
|
||||
RefPtr<Model> m_model;
|
||||
OwnPtr<ModelEditingDelegate> m_editing_delegate;
|
||||
ModelSelection m_selection;
|
||||
ModelIndex m_cursor_index;
|
||||
unsigned m_edit_triggers { EditTrigger::DoubleClicked | EditTrigger::EditKeyPressed };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue