1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 17:37:35 +00:00

MenuApplets: Added ability to remove entry from ClipboardHistory (#4143)

This commit is contained in:
Florian Förster 2020-11-24 21:37:04 +01:00 committed by GitHub
parent b1fd06eb4c
commit 438829a1d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 18 additions and 0 deletions

View file

@ -45,6 +45,7 @@ public:
const GUI::Clipboard::DataAndType& item_at(int index) const { return m_history_items[index]; }
void add_item(const GUI::Clipboard::DataAndType& item);
void remove_item(int index);
private:
virtual int row_count(const GUI::ModelIndex&) const override { return m_history_items.size(); }