File: LocalFileBrowser.qml

package info (click to toggle)
lomiri-cloudsync-app 0.8.1%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,560 kB
  • sloc: cpp: 1,053; python: 67; javascript: 25; makefile: 21; sh: 9
file content (28 lines) | stat: -rw-r--r-- 611 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import QtQuick 2.4
import Lomiri.Components 1.3
import Qt.labs.folderlistmodel 2.1

import "../components"

FileBrowser{
    id:fileBrowser
    folderModel: folderListModel
    caller: caller
    rootPath: Qt.resolvedUrl(owncloudsync.homePath())
    showNoChildFolders: true
    //property var caller

    FolderListModel {
        id: folderListModel
        showFiles: false
        showHidden: true
        folder: caller.text ? caller.text : fileBrowser.rootPath


        function newFolder(folderPath){
            console.log(folderPath)
            owncloudsync.newFolder(folderPath)

        }
    }
}