forked from qt-creator/qt-creator
QmlDesigner: Remove unnecessary function
Change-Id: I3a8c29ba7e24b10df957b4cb8fdb9f6e3acd6855 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Henning Gründl
parent
a86cb74526
commit
e1fce66f38
@@ -315,15 +315,8 @@ Rectangle {
|
|||||||
standardButtons: Dialog.Apply | Dialog.Cancel
|
standardButtons: Dialog.Apply | Dialog.Cancel
|
||||||
x: editButton.x - Math.max(0, editButton.x + editDialog.width - root.width)
|
x: editButton.x - Math.max(0, editButton.x + editDialog.width - root.width)
|
||||||
y: toolBar.height
|
y: toolBar.height
|
||||||
closePolicy: Popup.NoAutoClose
|
|
||||||
|
|
||||||
width: Math.min(300, root.width)
|
width: Math.min(300, root.width)
|
||||||
|
closePolicy: Popup.NoAutoClose
|
||||||
function apply() {
|
|
||||||
let renamed = statesEditorModel.renameActiveStateGroup(editTextField.text)
|
|
||||||
if (renamed)
|
|
||||||
editDialog.close()
|
|
||||||
}
|
|
||||||
|
|
||||||
onApplied: editDialog.accept()
|
onApplied: editDialog.accept()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user