~ubuntu-branches/ubuntu/vivid/muon/vivid-proposed

« back to all changes in this revision

Viewing changes to discover/qml/InstalledPage.qml

Tags: upstream-1.3.65
ImportĀ upstreamĀ versionĀ 1.3.65

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import QtQuick 1.1
 
2
import org.kde.plasma.components 0.1
 
3
 
 
4
ApplicationsListPage {
 
5
    id: page
 
6
    stateFilter: (1<<8)
 
7
    sortRole: "canUpgrade"
 
8
    sortOrder: 1
 
9
    sectionProperty: "canUpgrade"
 
10
    sectionDelegate: Label { text: section=="true" ? i18n("Update") : i18n("Installed"); anchors.right: parent.right }
 
11
    preferUpgrade: true
 
12
    preferList: true
 
13
    
 
14
    UpdatesPage {
 
15
        id: updatesPage
 
16
    }
 
17
    
 
18
    Component {
 
19
        id: toolbarComponent
 
20
        ToolButton {
 
21
            id: commitButton
 
22
            text: i18n("Upgrade All!")
 
23
            iconSource: "system-software-update"
 
24
            width: app.appBackend.updatesCount>0 && page.state!="updating" ? commitButton.implicitWidth : 0
 
25
            
 
26
            onClicked: {
 
27
                updatesPage.start();
 
28
                pageStack.push(updatesPage)
 
29
            }
 
30
        }
 
31
    }
 
32
    
 
33
    Component.onCompleted: {
 
34
        toolbarComponent.createObject(page.tools)
 
35
    }
 
36
}
 
 
b'\\ No newline at end of file'