forked from qt-creator/qt-creator
QmlProfiler: drag&drop reordering of models in timeline
Task-number: QTCREATORBUG-12337 Change-Id: I399593f44aa8ff8dd79c623108fecb3c317cb63c Reviewed-by: Kai Koehne <kai.koehne@digia.com>
This commit is contained in:
@@ -84,6 +84,7 @@ Rectangle {
|
||||
view.requestPaint();
|
||||
}
|
||||
onStateChanged: backgroundMarks.requestPaint()
|
||||
onModelsChanged: backgroundMarks.requestPaint()
|
||||
onExpandedChanged: backgroundMarks.requestPaint()
|
||||
onRowHeightChanged: backgroundMarks.requestPaint()
|
||||
}
|
||||
@@ -211,10 +212,20 @@ Rectangle {
|
||||
|
||||
Column {
|
||||
id: col
|
||||
|
||||
// Dispatch the cursor shape to all labels. When dragging the DropArea receiving
|
||||
// the drag events is not necessarily related to the MouseArea receiving the mouse
|
||||
// events, so we can't use the drag events to determine the cursor shape.
|
||||
property bool dragging: false
|
||||
|
||||
Repeater {
|
||||
model: labels.rowCount
|
||||
delegate: CategoryLabel {
|
||||
dragging: col.dragging
|
||||
reverseSelect: root.shiftPressed
|
||||
onDragStarted: col.dragging = true
|
||||
onDragStopped: col.dragging = false
|
||||
draggerParent: labels
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user