1
Fork 0
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:
AnotherTest 2020-11-02 20:21:07 +03:30 committed by Andreas Kling
parent 821e875bc0
commit 0e544b8afa
5 changed files with 123 additions and 0 deletions

View file

@ -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)