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:
parent
b1fd06eb4c
commit
438829a1d5
3 changed files with 18 additions and 0 deletions
|
@ -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(); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue