1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 04:57:45 +00:00

ClipboardHistory: Add a Clear history action

This clears the history from the table view and clears the clipboard.
This commit is contained in:
Tim Ledbetter 2023-01-14 14:52:16 +00:00 committed by Jelle Raaijmakers
parent 944c43a8b4
commit 68fa8525bf
3 changed files with 15 additions and 0 deletions

View file

@ -38,6 +38,7 @@ public:
ClipboardItem const& item_at(int index) const { return m_history_items[index]; }
void add_item(const GUI::Clipboard::DataAndType& item);
void remove_item(int index);
void clear();
bool is_empty() { return m_history_items.is_empty(); }
// ^GUI::Model