QmlProfiler: restore tooltips on category labels

They had been lost somewhere between QtCreator 2.8 and 3.0. Also
putting the location in braces looks nicer than the original.

Change-Id: Ia455ba99015ad38c21e528a0f8177902749ba1d5
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
Ulf Hermann
2014-06-23 15:46:40 +02:00
parent 84b00721e4
commit 3dbc59309a
4 changed files with 49 additions and 40 deletions

View File

@@ -52,8 +52,6 @@ Rectangle {
property real selectionRangeStart: selectionRange.startTime
property real selectionRangeEnd: selectionRange.startTime + selectionRange.duration
signal changeToolTip(string text)
color: "#dcdcdc"
// ***** connections with external objects
@@ -186,6 +184,11 @@ Rectangle {
buttonsBar.updateLockButton(selectionLocked);
}
focus: true
property bool shiftPressed: false;
Keys.onPressed: shiftPressed = (event.key === Qt.Key_Shift);
Keys.onReleased: shiftPressed = false;
Flickable {
id: labelsflick
flickableDirection: Flickable.VerticalFlick
@@ -212,7 +215,9 @@ Rectangle {
id: col
Repeater {
model: labels.rowCount
delegate: CategoryLabel { }
delegate: CategoryLabel {
reverseSelect: root.shiftPressed
}
}
}
}