forked from qt-creator/qt-creator
QmlProfiler: remove dead code
The selectedEventChanged signal was never emitted and aliasing the selectedItem property was unnecessary. Change-Id: I2a15ad82bbf20a7ae9a42e17935242fbac7b5129 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -40,8 +40,6 @@ Rectangle {
|
||||
|
||||
property alias selectionLocked : view.selectionLocked
|
||||
signal updateLockButton
|
||||
property alias selectedItem: view.selectedItem
|
||||
signal selectedEventChanged(int eventId)
|
||||
property bool lockItemSelection : false
|
||||
|
||||
property real mainviewTimePerPixel : 0
|
||||
@@ -196,16 +194,6 @@ Rectangle {
|
||||
updateLockButton();
|
||||
}
|
||||
|
||||
onSelectedItemChanged: {
|
||||
if (selectedItem != -1 && !lockItemSelection) {
|
||||
lockItemSelection = true;
|
||||
// update in other views
|
||||
var eventLocation = qmlProfilerModelProxy.getEventLocation(view.selectedModel, view.selectedItem);
|
||||
gotoSourceLocation(eventLocation.file, eventLocation.line, eventLocation.column);
|
||||
lockItemSelection = false;
|
||||
}
|
||||
}
|
||||
|
||||
Flickable {
|
||||
id: labelsflick
|
||||
flickableDirection: Flickable.VerticalFlick
|
||||
@@ -362,7 +350,16 @@ Rectangle {
|
||||
Math.max(0, Math.floor(center - windowLength/2)));
|
||||
|
||||
zoomControl.setRange(from, from + windowLength);
|
||||
}
|
||||
|
||||
if (!lockItemSelection) {
|
||||
lockItemSelection = true;
|
||||
// update in other views
|
||||
var eventLocation = qmlProfilerModelProxy.getEventLocation(
|
||||
view.selectedModel, view.selectedItem);
|
||||
gotoSourceLocation(eventLocation.file, eventLocation.line,
|
||||
eventLocation.column);
|
||||
lockItemSelection = false;
|
||||
}
|
||||
} else {
|
||||
root.hideRangeDetails();
|
||||
|
||||
Reference in New Issue
Block a user