forked from qt-creator/qt-creator
QmlDesigner: Fix injection of parameters warning
* Fix a warning about injection of parameters into signal handlers being deprecated * Fix comparison operator Change-Id: I33d0fe21f39feea69bcca82a57036594d28b039a Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
committed by
Henning Gründl
parent
274b8011ab
commit
3c0b75f2ef
@@ -81,7 +81,7 @@ Item {
|
||||
anchors.fill: parent
|
||||
|
||||
onShowContextMenu: delegateRoot.showContextMenu()
|
||||
onPressed: {
|
||||
onPressed: (mouse)=> {
|
||||
if (mouse.button === Qt.LeftButton)
|
||||
rootView.startDragAndDrop(itemLibraryEntry, mapToGlobal(mouse.x, mouse.y))
|
||||
}
|
||||
|
@@ -111,8 +111,8 @@ Item {
|
||||
id: mouseArea
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
onClicked: index == 0 ? rootView.handleAddModule()
|
||||
: rootView.handleAddAsset()
|
||||
onClicked: index === 0 ? rootView.handleAddModule()
|
||||
: rootView.handleAddAsset()
|
||||
tooltip: modelData.addToolTip
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user