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
|
property int currentNote: -1
|
||||||
Connections {
|
Connections {
|
||||||
target: notesModel
|
target: notesModel
|
||||||
onChanged: {
|
function onChanged(typeId, modelId, timelineIndex) {
|
||||||
// This will only be called if notesModel != null.
|
// This will only be called if notesModel != null.
|
||||||
if (modelId === -1 || modelId === model.modelId) {
|
if (modelId === -1 || modelId === model.modelId) {
|
||||||
var notes = notesModel.byTimelineModel(model.modelId);
|
var notes = notesModel.byTimelineModel(model.modelId);
|
||||||
|
@@ -307,7 +307,7 @@ ScrollView {
|
|||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: root.model
|
target: root.model
|
||||||
onModelReset: {
|
function onModelReset() {
|
||||||
tooltip.hoveredNode = null;
|
tooltip.hoveredNode = null;
|
||||||
tooltip.selectedNode = null;
|
tooltip.selectedNode = null;
|
||||||
}
|
}
|
||||||
|
@@ -51,12 +51,12 @@ Rectangle {
|
|||||||
// ***** connections with external objects
|
// ***** connections with external objects
|
||||||
Connections {
|
Connections {
|
||||||
target: zoomControl
|
target: zoomControl
|
||||||
onRangeChanged: {
|
function onRangeChanged() {
|
||||||
zoomSliderToolBar.updateZoomLevel();
|
zoomSliderToolBar.updateZoomLevel();
|
||||||
content.scroll();
|
content.scroll();
|
||||||
selectionRange.update();
|
selectionRange.update();
|
||||||
}
|
}
|
||||||
onWindowChanged: {
|
function onWindowChanged() {
|
||||||
content.scroll();
|
content.scroll();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -70,7 +70,7 @@ Rectangle {
|
|||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: zoomer
|
target: zoomer
|
||||||
onRangeChanged: updateRangeMover()
|
function onRangeChanged() { updateRangeMover(); }
|
||||||
}
|
}
|
||||||
|
|
||||||
TimeDisplay {
|
TimeDisplay {
|
||||||
|
@@ -68,7 +68,7 @@ RangeMover {
|
|||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: zoomer
|
target: zoomer
|
||||||
onWindowChanged: updateRange()
|
function onWindowChanged() { updateRange(); }
|
||||||
}
|
}
|
||||||
|
|
||||||
function setPos(pos) {
|
function setPos(pos) {
|
||||||
|
@@ -48,8 +48,8 @@ Item {
|
|||||||
// keep inside view
|
// keep inside view
|
||||||
Connections {
|
Connections {
|
||||||
target: selectionRangeDetails.parent
|
target: selectionRangeDetails.parent
|
||||||
onWidthChanged: fitInView();
|
function onWidthChanged() { fitInView(); }
|
||||||
onHeightChanged: fitInView();
|
function onHeightChanged() { fitInView(); }
|
||||||
}
|
}
|
||||||
|
|
||||||
function fitInView() {
|
function fitInView() {
|
||||||
|
@@ -70,7 +70,7 @@ Item {
|
|||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: model
|
target: model
|
||||||
onExpandedRowHeightChanged: {
|
function onExpandedRowHeightChanged() {
|
||||||
if (model && model.expanded && row >= 0)
|
if (model && model.expanded && row >= 0)
|
||||||
rowRepeater.itemAt(row).height = height;
|
rowRepeater.itemAt(row).height = height;
|
||||||
}
|
}
|
||||||
|
@@ -135,8 +135,8 @@ Flickable {
|
|||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: timelineView
|
target: timelineView
|
||||||
onClearChildren: renderer.clearData()
|
function onClearChildren() { renderer.clearData(); }
|
||||||
onSelect: {
|
function onSelect(modelIndex, eventIndex) {
|
||||||
if (modelIndex === index || modelIndex === -1) {
|
if (modelIndex === index || modelIndex === -1) {
|
||||||
renderer.selectedItem = eventIndex;
|
renderer.selectedItem = eventIndex;
|
||||||
if (eventIndex !== -1)
|
if (eventIndex !== -1)
|
||||||
@@ -167,7 +167,7 @@ Flickable {
|
|||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: model
|
target: model
|
||||||
onDetailsChanged: {
|
function onDetailsChanged() {
|
||||||
if (selectedItem != -1) {
|
if (selectedItem != -1) {
|
||||||
flick.propagateSelection(-1, -1);
|
flick.propagateSelection(-1, -1);
|
||||||
flick.propagateSelection(index, selectedItem);
|
flick.propagateSelection(index, selectedItem);
|
||||||
|
Reference in New Issue
Block a user