┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/dolphinmainwindow.h
diff options
context:
space:
mode:
authorGleb Kasachou <[email protected]>2025-09-07 13:24:28 +0300
committerMéven Car <[email protected]>2025-09-07 10:24:28 +0000
commitbfa9c13cb24da62bea8d45f9f99a884a50a039a3 (patch)
treee6e416358149fc2ea97578d426182df1ae7361ea /src/dolphinmainwindow.h
parent5d66b4f5ecce950cd6f643fa27463b733bfc5c66 (diff)
Add support for Redo operations
This MR updates Dolphin to support redo functionality added in KIO's FileUndoManager. It enables triggering redo operations from the user interface and ensures appropriate integration with the undo/redo command flow. Require: [!1941](https://invent.kde.org/frameworks/kio/-/merge_requests/1941) BUG: 451746
Diffstat (limited to 'src/dolphinmainwindow.h')
-rw-r--r--src/dolphinmainwindow.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/dolphinmainwindow.h b/src/dolphinmainwindow.h
index 4952085f0..2c8d444ad 100644
--- a/src/dolphinmainwindow.h
+++ b/src/dolphinmainwindow.h
@@ -314,6 +314,20 @@ private Q_SLOTS:
/** Performs the current undo operation. */
void undo();
+#if KIO_VERSION >= QT_VERSION_CHECK(6, 17, 0)
+ /**
+ * Updates the state of the 'Redo' menu action dependent
+ * on the parameter \a available.
+ */
+ void slotRedoAvailable(bool available);
+
+ /** Sets the text of the 'Redo' menu action to \a text. */
+ void slotRedoTextChanged(const QString &text);
+
+ /** Performs the current redo operation. */
+ void redo();
+#endif
+
/**
* Copies all selected items to the clipboard and marks
* the items as cut.