diff --git a/src/plugins/qmlprofiler/qml/Overview.qml b/src/plugins/qmlprofiler/qml/Overview.qml index 3fd01825d0b47c81ab2b93288e853c1ce176fe6b..3e2a3183abb57f1d5d3a451862cc6d9dfc98384e 100644 --- a/src/plugins/qmlprofiler/qml/Overview.qml +++ b/src/plugins/qmlprofiler/qml/Overview.qml @@ -113,7 +113,11 @@ Canvas { offset = -1; requestPaint(); } - onNotesChanged: notes.doPaint = true; + } + + Connections { + target: modelProxy.notes + onChanged: notes.doPaint = true } Timer { diff --git a/src/plugins/qmlprofiler/timelinemodelaggregator.cpp b/src/plugins/qmlprofiler/timelinemodelaggregator.cpp index 99b5fd3aed173d68e1c2b1abcd14c09441c91523..a686bd4e98bfb71cea333afaa01eba5347c71cca 100644 --- a/src/plugins/qmlprofiler/timelinemodelaggregator.cpp +++ b/src/plugins/qmlprofiler/timelinemodelaggregator.cpp @@ -59,8 +59,6 @@ TimelineModelAggregator::TimelineModelAggregator(QmlProfilerNotesModel *notes, Q d->notesModel = notes; connect(this,SIGNAL(modelsChanged()),this,SIGNAL(heightChanged())); connect(this,SIGNAL(stateChanged()),this,SIGNAL(heightChanged())); - connect(notes, SIGNAL(changed(int,int,int)), this, SIGNAL(notesChanged(int,int,int))); - } TimelineModelAggregator::~TimelineModelAggregator() diff --git a/src/plugins/qmlprofiler/timelinemodelaggregator.h b/src/plugins/qmlprofiler/timelinemodelaggregator.h index 0be00ed2726aa169c88c9461bfee673b0c37c5fe..b1961065242ea52aed23591f41ec16d2618e51c7 100644 --- a/src/plugins/qmlprofiler/timelinemodelaggregator.h +++ b/src/plugins/qmlprofiler/timelinemodelaggregator.h @@ -66,7 +66,6 @@ public: signals: void dataAvailable(); void stateChanged(); - void notesChanged(int typeId, int modelIndex, int eventIndex); void modelsChanged(); void heightChanged();