From 3f73995a03c4b40e2648cb9af5d3e7ca393bf597 Mon Sep 17 00:00:00 2001 From: Mitch Curtis Date: Tue, 10 Mar 2020 15:40:56 +0100 Subject: Move undo framework out of Qt Widgets - Moves QUndo* classes (except QUndoView) from src/widgets/utils to src/gui/utils - Moves related auto tests from widgets to gui - Replaces QUndoAction with lambdas that do text prefixing [ChangeLog][Undo Framework] QUndo* classes (except QUndoView) were moved from Qt Widgets to Qt GUI. Done-with: volker.hilsheimer@qt.io Fixes: QTBUG-40040 Change-Id: I3bd8d4d32c64f8dee548f62159a1df2126da89d8 Reviewed-by: Lars Knoll Reviewed-by: Volker Hilsheimer --- src/gui/configure.cmake | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'src/gui/configure.cmake') diff --git a/src/gui/configure.cmake b/src/gui/configure.cmake index 45ca061ed7..eb7d2b5549 100644 --- a/src/gui/configure.cmake +++ b/src/gui/configure.cmake @@ -1134,6 +1134,26 @@ qt_feature("multiprocess" PRIVATE PURPOSE "Provides support for detecting the desktop environment, launching external processes and opening URLs." CONDITION NOT INTEGRITY AND NOT rtems ) +qt_feature("undocommand" PUBLIC + SECTION "Utilities" + LABEL "QUndoCommand" + PURPOSE "Applies (redo or) undo of a single change in a document." +) +qt_feature_definition("undocommand" "QT_NO_UNDOCOMMAND" NEGATE VALUE "1") +qt_feature("undostack" PUBLIC + SECTION "Utilities" + LABEL "QUndoStack" + PURPOSE "Provides the ability to (redo or) undo a list of changes in a document." + CONDITION QT_FEATURE_undocommand +) +qt_feature_definition("undostack" "QT_NO_UNDOSTACK" NEGATE VALUE "1") +qt_feature("undogroup" PUBLIC + SECTION "Utilities" + LABEL "QUndoGroup" + PURPOSE "Provides the ability to cluster QUndoCommands." + CONDITION QT_FEATURE_undostack +) +qt_feature_definition("undogroup" "QT_NO_UNDOGROUP" NEGATE VALUE "1") qt_feature("whatsthis" PUBLIC SECTION "Widget Support" LABEL "QWhatsThis" -- cgit v1.2.3