Commit 9cc00e74 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

Allow to clear history

parent 56074436
Pipeline #86230 passed with stage
in 24 minutes and 38 seconds
......@@ -17,3 +17,13 @@ HistorySwitchFolderManager::HistorySwitchFolderManager(QObject *parent)
HistorySwitchFolderManager::~HistorySwitchFolderManager()
{
}
void HistorySwitchFolderManager::addHistory()
{
// TODO mUndoStack->push(new QUndoCommand(this));
}
void HistorySwitchFolderManager::clear()
{
mUndoStack->clear();
}
......@@ -14,6 +14,9 @@ public:
explicit HistorySwitchFolderManager(QObject *parent = nullptr);
~HistorySwitchFolderManager() override;
// Add static method
void clear();
void addHistory();
private:
QUndoStack *const mUndoStack;
};
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment