Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
KMail
Commits
56074436
Commit
56074436
authored
Oct 06, 2021
by
Laurent Montel
😁
Browse files
We will use QUndoStack here
parent
011acfc7
Pipeline
#85958
passed with stage
in 23 minutes and 58 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/historyswitchfoldermanager.cpp
View file @
56074436
...
...
@@ -6,8 +6,11 @@
#include
"historyswitchfoldermanager.h"
#include
<QUndoStack>
HistorySwitchFolderManager
::
HistorySwitchFolderManager
(
QObject
*
parent
)
:
QObject
{
parent
}
,
mUndoStack
(
new
QUndoStack
(
this
))
{
}
...
...
src/historyswitchfoldermanager.h
View file @
56074436
...
...
@@ -6,7 +6,7 @@
#pragma once
#include
<QObject>
class
QUndoStack
;
class
HistorySwitchFolderManager
:
public
QObject
{
Q_OBJECT
...
...
@@ -14,4 +14,6 @@ public:
explicit
HistorySwitchFolderManager
(
QObject
*
parent
=
nullptr
);
~
HistorySwitchFolderManager
()
override
;
// Add static method
private:
QUndoStack
*
const
mUndoStack
;
};
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment