forked from qt-creator/qt-creator
Tracing: Fix a couple of warnings regarding parameter injection
Parameter "XYZ" is not declared. Injection of parameters into signal handlers is deprecated. Use JavaScript functions with formal parameters instead. Change-Id: I3aea1af6bb6559f26dc83b8c20ada11885b715f9 Reviewed-by: Henning Gründl <henning.gruendl@qt.io>
This commit is contained in:
@@ -151,8 +151,12 @@ Rectangle {
|
||||
zoomer: zoomControl
|
||||
reverseSelect: shiftPressed
|
||||
|
||||
onMoveCategories: content.moveCategories(sourceIndex, targetIndex)
|
||||
onSelectItem: content.select(modelIndex, eventIndex)
|
||||
onMoveCategories: (sourceIndex, targetIndex) => {
|
||||
content.moveCategories(sourceIndex, targetIndex)
|
||||
}
|
||||
onSelectItem: (modelIndex, eventIndex) => {
|
||||
content.select(modelIndex, eventIndex)
|
||||
}
|
||||
}
|
||||
|
||||
TimeDisplay {
|
||||
@@ -206,7 +210,7 @@ Rectangle {
|
||||
|
||||
onWidthChanged: selectionRange.update();
|
||||
|
||||
onPropagateSelection: {
|
||||
onPropagateSelection: (newModel, newItem) => {
|
||||
if (lockItemSelection || (newModel === selectedModel && newItem === selectedItem))
|
||||
return;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user