You've already forked joplin
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:
@@ -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 {
|
@@ -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
|
||||
|
@@ -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>
|
||||
|
Reference in New Issue
Block a user