summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Gruendl <henning.gruendl@qt.io>2022-12-05 10:46:30 +0100
committerHenning Gründl <henning.gruendl@qt.io>2022-12-05 10:33:13 +0000
commite1fce66f38332eb0995b2a4847429e8a71808c9c (patch)
tree9330d579738842b4e0b977c2a24b78105e68ea56
parenta86cb745261d96ce71da306b0b373db726876961 (diff)
downloadqt-creator-e1fce66f38332eb0995b2a4847429e8a71808c9c.tar.gz
QmlDesigner: Remove unnecessary function
Change-Id: I3a8c29ba7e24b10df957b4cb8fdb9f6e3acd6855 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
-rw-r--r--share/qtcreator/qmldesigner/newstateseditor/Main.qml9
1 files changed, 1 insertions, 8 deletions
diff --git a/share/qtcreator/qmldesigner/newstateseditor/Main.qml b/share/qtcreator/qmldesigner/newstateseditor/Main.qml
index 74b50d5f94..0176cc79f6 100644
--- a/share/qtcreator/qmldesigner/newstateseditor/Main.qml
+++ b/share/qtcreator/qmldesigner/newstateseditor/Main.qml
@@ -315,15 +315,8 @@ Rectangle {
standardButtons: Dialog.Apply | Dialog.Cancel
x: editButton.x - Math.max(0, editButton.x + editDialog.width - root.width)
y: toolBar.height
- closePolicy: Popup.NoAutoClose
-
width: Math.min(300, root.width)
-
- function apply() {
- let renamed = statesEditorModel.renameActiveStateGroup(editTextField.text)
- if (renamed)
- editDialog.close()
- }
+ closePolicy: Popup.NoAutoClose
onApplied: editDialog.accept()