summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2018-10-26 10:03:14 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2018-10-28 21:17:56 +0000
commite7899cfcbf4c1fc4c77362973458262cadda765f (patch)
tree94b9e3cf42e9740670bc4d0b3b888457951e6c93
parent1d9bb3c433e605e07e07a703422c6e837143e775 (diff)
Qt Designer: Add QUndoView
Fix an apparent oversight. QUndoView (since 4.2) showed up as custom widget in .ui files. It is a proper Qt class, though. Task-number: PYSIDE-797 Change-Id: I6d2ee62b64daa9564d2c75e1e6ea81d79859768a Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
-rw-r--r--src/designer/src/components/widgetbox/widgetbox.xml10
-rw-r--r--src/designer/src/lib/uilib/widgets.table3
2 files changed, 13 insertions, 0 deletions
diff --git a/src/designer/src/components/widgetbox/widgetbox.xml b/src/designer/src/components/widgetbox/widgetbox.xml
index a610d4eb9..802c28f67 100644
--- a/src/designer/src/components/widgetbox/widgetbox.xml
+++ b/src/designer/src/components/widgetbox/widgetbox.xml
@@ -277,6 +277,16 @@
</ui>
</categoryentry>
+ <categoryentry name="Undo View" icon="widgets/listbox.png">
+ <ui>
+ <widget class="QUndoView">
+ <property name="objectName">
+ <string notr="true">undoView</string>
+ </property>
+ </widget>
+ </ui>
+ </categoryentry>
+
</category>
<category name="Item Widgets (Item-Based)">
diff --git a/src/designer/src/lib/uilib/widgets.table b/src/designer/src/lib/uilib/widgets.table
index 2a55235de..3dbb7aff2 100644
--- a/src/designer/src/lib/uilib/widgets.table
+++ b/src/designer/src/lib/uilib/widgets.table
@@ -133,6 +133,9 @@ DECLARE_WIDGET(QCalendarWidget, "")
#if QT_CONFIG(columnview)
DECLARE_WIDGET(QColumnView, "")
#endif
+#if QT_CONFIG(undoview)
+DECLARE_WIDGET(QUndoView, "")
+#endif
#if QT_CONFIG(wizard)
DECLARE_WIDGET(QWizard, "")