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:
parent
944c43a8b4
commit
68fa8525bf
3 changed files with 15 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue