mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:07:36 +00:00
Spreadsheet: Enable Drag&Drop and Copy/Paste
These currently only work on the current sheet, in the current Spreadsheet instance, but they're still freakin' cool!
This commit is contained in:
parent
821e875bc0
commit
0e544b8afa
5 changed files with 123 additions and 0 deletions
|
@ -44,6 +44,7 @@ public:
|
|||
virtual void set_data(const GUI::ModelIndex&, const GUI::Variant&) override;
|
||||
virtual void update() override;
|
||||
virtual bool is_column_sortable(int) const override { return false; }
|
||||
virtual StringView drag_data_type() const override { return "text/x-spreadsheet-data"; }
|
||||
|
||||
private:
|
||||
explicit SheetModel(Sheet& sheet)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue