~om26er/ubuntu-filemanager-app/fix_toolbar_icons

« back to all changes in this revision

Viewing changes to ubuntu-filemanager-app.qml

  • Committer: Tarmac
  • Author(s): Michel Spencer
  • Date: 2013-06-27 21:49:34 UTC
  • mfrom: (35.1.8 improved-ui)
  • Revision ID: tarmac-20130627214934-1qbf886rn5tr1s52
Improved UI. Fixes: https://bugs.launchpad.net/bugs/1190855.

Approved by Ubuntu Phone Apps Jenkins Bot, Arto Jalkanen.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
    width: units.gu(50)
34
34
    height: units.gu(75)
35
35
    
36
 
    Tabs {
37
 
        id: tabs
38
 
        anchors.fill: parent
39
 
        
40
 
        // First tab begins here
41
 
        Tab {
42
 
            objectName: "folderListPage"
43
 
            
44
 
            title: i18n.tr("File Manager")
45
 
            
46
 
            // Tab content begins here
47
 
            page: FolderListPage {
48
 
            }
49
 
        }        
 
36
    FolderListPage {
 
37
        objectName: "folderPage"
 
38
        id: folderPage
 
39
 
 
40
        folder: homeFolder
 
41
 
 
42
        function goHome() {
 
43
            // FIXME: Get the user's home folder without requiring an instance
 
44
            // of a FolderListModel
 
45
            goTo(homeFolder)
 
46
        }
 
47
 
 
48
        function goTo(location) {
 
49
            // FIXME: Why is this needed? Folder doesn't seem to refresh without it
 
50
            folder = ""
 
51
            folder = location
 
52
        }
50
53
    }
51
54
}