Commit 56074436 authored by Laurent Montel's avatar Laurent Montel 😁
Browse files

We will use QUndoStack here

parent 011acfc7
Pipeline #85958 passed with stage
in 23 minutes and 58 seconds
...@@ -6,8 +6,11 @@ ...@@ -6,8 +6,11 @@
#include "historyswitchfoldermanager.h" #include "historyswitchfoldermanager.h"
#include <QUndoStack>
HistorySwitchFolderManager::HistorySwitchFolderManager(QObject *parent) HistorySwitchFolderManager::HistorySwitchFolderManager(QObject *parent)
: QObject{parent} : QObject{parent}
, mUndoStack(new QUndoStack(this))
{ {
} }
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
#pragma once #pragma once
#include <QObject> #include <QObject>
class QUndoStack;
class HistorySwitchFolderManager : public QObject class HistorySwitchFolderManager : public QObject
{ {
Q_OBJECT Q_OBJECT
...@@ -14,4 +14,6 @@ public: ...@@ -14,4 +14,6 @@ public:
explicit HistorySwitchFolderManager(QObject *parent = nullptr); explicit HistorySwitchFolderManager(QObject *parent = nullptr);
~HistorySwitchFolderManager() override; ~HistorySwitchFolderManager() override;
// Add static method // Add static method
private:
QUndoStack *const mUndoStack;
}; };
Supports Markdown
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