forked from qt-creator/qt-creator
Tracing: Fix runtime QML warnings
"QML Connections: Implicitly defined onFoo properties in Connections are deprecated. Use this syntax instead: function onFoo(<arguments>)" Change-Id: Idf65152f5aa1b96a739bd41f87893270b9da8e1b Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
This commit is contained in:
@@ -148,7 +148,7 @@ Item {
|
||||
property int currentNote: -1
|
||||
Connections {
|
||||
target: notesModel
|
||||
onChanged: {
|
||||
function onChanged(typeId, modelId, timelineIndex) {
|
||||
// This will only be called if notesModel != null.
|
||||
if (modelId === -1 || modelId === model.modelId) {
|
||||
var notes = notesModel.byTimelineModel(model.modelId);
|
||||
|
@@ -307,7 +307,7 @@ ScrollView {
|
||||
|
||||
Connections {
|
||||
target: root.model
|
||||
onModelReset: {
|
||||
function onModelReset() {
|
||||
tooltip.hoveredNode = null;
|
||||
tooltip.selectedNode = null;
|
||||
}
|
||||
|
@@ -51,12 +51,12 @@ Rectangle {
|
||||
// ***** connections with external objects
|
||||
Connections {
|
||||
target: zoomControl
|
||||
onRangeChanged: {
|
||||
function onRangeChanged() {
|
||||
zoomSliderToolBar.updateZoomLevel();
|
||||
content.scroll();
|
||||
selectionRange.update();
|
||||
}
|
||||
onWindowChanged: {
|
||||
function onWindowChanged() {
|
||||
content.scroll();
|
||||
}
|
||||
}
|
||||
|
@@ -70,7 +70,7 @@ Rectangle {
|
||||
|
||||
Connections {
|
||||
target: zoomer
|
||||
onRangeChanged: updateRangeMover()
|
||||
function onRangeChanged() { updateRangeMover(); }
|
||||
}
|
||||
|
||||
TimeDisplay {
|
||||
|
@@ -68,7 +68,7 @@ RangeMover {
|
||||
|
||||
Connections {
|
||||
target: zoomer
|
||||
onWindowChanged: updateRange()
|
||||
function onWindowChanged() { updateRange(); }
|
||||
}
|
||||
|
||||
function setPos(pos) {
|
||||
|
@@ -48,8 +48,8 @@ Item {
|
||||
// keep inside view
|
||||
Connections {
|
||||
target: selectionRangeDetails.parent
|
||||
onWidthChanged: fitInView();
|
||||
onHeightChanged: fitInView();
|
||||
function onWidthChanged() { fitInView(); }
|
||||
function onHeightChanged() { fitInView(); }
|
||||
}
|
||||
|
||||
function fitInView() {
|
||||
|
@@ -70,7 +70,7 @@ Item {
|
||||
|
||||
Connections {
|
||||
target: model
|
||||
onExpandedRowHeightChanged: {
|
||||
function onExpandedRowHeightChanged() {
|
||||
if (model && model.expanded && row >= 0)
|
||||
rowRepeater.itemAt(row).height = height;
|
||||
}
|
||||
|
@@ -135,8 +135,8 @@ Flickable {
|
||||
|
||||
Connections {
|
||||
target: timelineView
|
||||
onClearChildren: renderer.clearData()
|
||||
onSelect: {
|
||||
function onClearChildren() { renderer.clearData(); }
|
||||
function onSelect(modelIndex, eventIndex) {
|
||||
if (modelIndex === index || modelIndex === -1) {
|
||||
renderer.selectedItem = eventIndex;
|
||||
if (eventIndex !== -1)
|
||||
@@ -167,7 +167,7 @@ Flickable {
|
||||
|
||||
Connections {
|
||||
target: model
|
||||
onDetailsChanged: {
|
||||
function onDetailsChanged() {
|
||||
if (selectedItem != -1) {
|
||||
flick.propagateSelection(-1, -1);
|
||||
flick.propagateSelection(index, selectedItem);
|
||||
|
Reference in New Issue
Block a user