summaryrefslogtreecommitdiff
path: root/src/main/python/utils/dialogs.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/python/utils/dialogs.py')
-rw-r--r--src/main/python/utils/dialogs.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/main/python/utils/dialogs.py b/src/main/python/utils/dialogs.py
index e008aa5..3791599 100644
--- a/src/main/python/utils/dialogs.py
+++ b/src/main/python/utils/dialogs.py
@@ -99,4 +99,12 @@ def saveEvent(parent = None):
if alert == QMessageBox.Save:
if not parent.saveProject(): #the parent's saveProject method is called which returns false if saving was cancelled by the user
return False
- return True \ No newline at end of file
+ return True
+
+def showUndoDialog(undoView, parent):
+ dialogBox = QDialog(parent)
+ dialogBox.resize(400, 400)
+ layout = QFormLayout(dialogBox)
+ layout.addWidget(undoView)
+ dialogBox.setWindowTitle("Undo Stack")
+ dialogBox.show() \ No newline at end of file