1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-08-13 22:12:50 +02:00

Making folder list more generic to reuse it for notelist

This commit is contained in:
Laurent Cozic
2017-01-12 18:18:59 +01:00
parent ed8f8c32da
commit b02da1b80c
3 changed files with 4 additions and 5 deletions

View File

@@ -53,14 +53,14 @@ Item {
highlightMoveVelocity: -1
highlightMoveDuration: 100
anchors.fill: parent
delegate: folderDelegate
delegate: itemListDelegate
ScrollBar.vertical: ScrollBar { }
highlight: Rectangle { color: "lightsteelblue"; radius: 5 }
focus: true
}
Component {
id: folderDelegate
id: itemListDelegate
EditableListItem {
contextMenu:
Menu {

View File

@@ -1,6 +1,5 @@
import QtQuick 2.7
import QtQuick.Controls 2.0
//import QtQuick.Controls 1.4
import QtQuick.Layouts 1.0
Item {
@@ -16,7 +15,7 @@ Item {
anchors.fill: parent
spacing: 0
FolderList {
ItemList {
id: folderList
model: folderListModel
Layout.fillWidth: true

View File

@@ -1,7 +1,7 @@
<RCC>
<qresource prefix="/">
<file>app.qml</file>
<file>FolderList.qml</file>
<file>ItemList.qml</file>
<file>NoteList.qml</file>
<file>NoteEditor.qml</file>
<file>AddButton.qml</file>