mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
36 lines
718 B
QML
Executable File
36 lines
718 B
QML
Executable File
import QtQuick 2.0
|
|
import QtQuick.Controls 2.0
|
|
|
|
Item {
|
|
id: root
|
|
property alias model: listView.model
|
|
property alias currentIndex: listView.currentIndex
|
|
property alias currentItem: listView.currentItem
|
|
|
|
Rectangle {
|
|
color: "#eeeeff"
|
|
border.color: "#ff0000"
|
|
anchors.fill: parent
|
|
}
|
|
|
|
ListView {
|
|
id: listView
|
|
anchors.fill: parent
|
|
delegate: folderDelegate
|
|
ScrollBar.vertical: ScrollBar { }
|
|
highlight: Rectangle { color: "lightsteelblue"; radius: 5 }
|
|
focus: true
|
|
// onModelChanged: {
|
|
//// listView.model.onDataChanged = function() {
|
|
//// console.info("testaaaaaaaaaaaaaaaaaaa")
|
|
//// }
|
|
// console.info("MODEL CHANGAID")
|
|
// }
|
|
}
|
|
|
|
Component {
|
|
id: folderDelegate
|
|
EditableListItem {}
|
|
}
|
|
}
|