feat(Storybook): Drag and drop pages to QtCreator
This commit is contained in:
parent
75dd3f7cb6
commit
15fcdc9314
|
@ -21,6 +21,20 @@ ListView {
|
|||
|
||||
width: ListView.view.width
|
||||
|
||||
Drag.dragType: Drag.Automatic
|
||||
Drag.active: dragArea.drag.active
|
||||
Drag.mimeData: {
|
||||
"text/uri-list": `file:${pagesFolder}/${model.title}Page.qml`
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
id: dragArea
|
||||
anchors.fill: parent
|
||||
|
||||
drag.target: this
|
||||
acceptedButtons: Qt.RightButton
|
||||
}
|
||||
|
||||
TextMetrics {
|
||||
id: textMetrics
|
||||
text: root.unfoldedPrefix
|
||||
|
|
Loading…
Reference in New Issue