[pim/kmail] src: Prepare using QUndoStack

Laurent Montel <[email protected]>
Newsgroups gmane.comp.kde.cvs
Message-ID <[email protected]>
Git commit 0565898aeeb47ad732824603088a0376cd03b4c9 by Laurent Montel.
Committed on 24/07/2026 at 06:48.
Pushed by mlaurent into branch 'master'.

Prepare using QUndoStack

M  +2    -0    src/CMakeLists.txt
A  +15   -0    src/kmundoredomanager.cpp     [License: GPL(v2.0+)]
A  +18   -0    src/kmundoredomanager.h     [License: GPL(v2.0+)]

https://invent.kde.org/pim/kmail/-/commit/0565898aeeb47ad732824603088a0376cd03b4c9

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 9e58f2ad5..077cdcf8d 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -179,6 +179,8 @@ target_sources(
         kmsystemtray.cpp
         unityservicemanager.cpp
         undostack.cpp
+        kmundoredomanager.h
+        kmundoredomanager.cpp
         kmkernel.cpp
         commandlineinfo.h
         commandlineinfo.cpp
diff --git a/src/kmundoredomanager.cpp b/src/kmundoredomanager.cpp
new file mode 100644
index 000000000..9dc289b3c
--- /dev/null
+++ b/src/kmundoredomanager.cpp
@@ -0,0 +1,15 @@
+/*
+   SPDX-FileCopyrightText: 2026 Laurent Montel <[email protected]>
+
+   SPDX-License-Identifier: GPL-2.0-or-later
+*/
+
+#include "kmundoredomanager.h"
+
+using namespace KMail;
+KMUndoRedoManager::KMUndoRedoManager(QObject *parent)
+    : QObject{parent}
+{
+}
+
+KMUndoRedoManager::~KMUndoRedoManager() = default;
diff --git a/src/kmundoredomanager.h b/src/kmundoredomanager.h
new file mode 100644
index 000000000..6132dedb4
--- /dev/null
+++ b/src/kmundoredomanager.h
@@ -0,0 +1,18 @@
+/*
+   SPDX-FileCopyrightText: 2026 Laurent Montel <[email protected]>
+
+   SPDX-License-Identifier: GPL-2.0-or-later
+*/
+#pragma once
+
+#include <QObject>
+namespace KMail
+{
+class KMUndoRedoManager : public QObject
+{
+    Q_OBJECT
+public:
+    explicit KMUndoRedoManager(QObject *parent = nullptr);
+    ~KMUndoRedoManager() override;
+};
+}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.