diff options
author | AnotherTest <ali.mpfard@gmail.com> | 2020-11-07 23:18:41 +0330 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-11-08 21:46:13 +0100 |
commit | e99c2261e348510edf5c549fc75a9fac4372cedf (patch) | |
tree | 73eafeaf2b2874c0dc9956848b1807f00c0831ae /Applications/Spreadsheet/SpreadsheetModel.h | |
parent | 7878596532f32b65be06dd032035b5ecbf35c896 (diff) | |
download | serenity-e99c2261e348510edf5c549fc75a9fac4372cedf.zip |
Spreadsheet: Add support for copying ranges of cells to other cells
Now the entire range is copied to the area around the target cell,
translating the current cursor to the target.
Diffstat (limited to 'Applications/Spreadsheet/SpreadsheetModel.h')
-rw-r--r-- | Applications/Spreadsheet/SpreadsheetModel.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Applications/Spreadsheet/SpreadsheetModel.h b/Applications/Spreadsheet/SpreadsheetModel.h index 8edf46ab1e..8926f6104b 100644 --- a/Applications/Spreadsheet/SpreadsheetModel.h +++ b/Applications/Spreadsheet/SpreadsheetModel.h @@ -40,6 +40,7 @@ public: virtual int column_count(const GUI::ModelIndex& = GUI::ModelIndex()) const override { return m_sheet->column_count(); } virtual String column_name(int) const override; virtual GUI::Variant data(const GUI::ModelIndex&, GUI::ModelRole) const override; + virtual RefPtr<Core::MimeData> mime_data(const GUI::ModelSelection&) const override; virtual bool is_editable(const GUI::ModelIndex&) const override; virtual void set_data(const GUI::ModelIndex&, const GUI::Variant&) override; virtual void update() override; |