From bfa9c13cb24da62bea8d45f9f99a884a50a039a3 Mon Sep 17 00:00:00 2001 From: Gleb Kasachou Date: Sun, 7 Sep 2025 13:24:28 +0300 Subject: 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 --- src/dolphinmainwindow.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'src/dolphinmainwindow.h') 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. -- cgit v1.3